The type of value that the asyncFunc returns.
Returns a Promise resolving to the value returned by asyncFunc if the condition is true, otherwise returns undefined.
Executes an asynchronous function conditionally.
The type of value that the asyncFunc returns.
An async function that returns a boolean that determines whether asyncFunc should be executed.
The async function to execute if the condition is true.
OptionallogEnabled: booleanOptional. Determines whether to enable logging. Defaults to false.
Returns a Promise resolving to the value returned by asyncFunc if the condition is true, otherwise returns undefined.
Executes an asynchronous function conditionally.