Skip to content

invokeAsyncAndLog

Invokes a function and logs the start, end, and duration of the invocation.

Import:

import { invokeAsyncAndLog } from '@mnaoumov/obsidian-lib/logger';

Signature:

function invokeAsyncAndLog(params: InvokeAsyncAndLogParams): Promise<void>

Parameters:

Parameter Type Description
params InvokeAsyncAndLogParams The parameters for the invocation.

Returns: Promise<void>


Links to this page: