Represents a value that can be either synchronous or asynchronous.
Critical for utility functions that need to handle both sync and async operations uniformly, enabling flexible API design.
function processData<T>(processor: () => MaybePromise<T>): Promise<T>function transform<T, U>(value: T, transformer: (val: T) => MaybePromise<U>): Promise<U> Copy
function processData<T>(processor: () => MaybePromise<T>): Promise<T>function transform<T, U>(value: T, transformer: (val: T) => MaybePromise<U>): Promise<U>
Represents a value that can be either synchronous or asynchronous.
Critical for utility functions that need to handle both sync and async operations uniformly, enabling flexible API design.