Keeps sure to returns an async function.
const func1 = asAsync((a: number, b: number) => a + b)const func2 = asAsync(async (x: string, y: number) => x + y)const sum1 = await func1(5979, 23979) // 29958const sum2 = await func2('TM', 5979) // 'TM5979'
The result with the async function.
The input value.
Rest
Generated using TypeDoc
Keeps sure to returns an async function.
Example
Returns
The result with the async function.