Core API Overview > @adpt/core > useAsync
useAsync() function
Signature:
export declare function useAsync<T>(f: () => Promise<T> | T, initial: T): T;
Parameters
Parameter | Type | Description |
---|---|---|
f | () => Promise<T> | T | |
initial | T |
Returns:
T
Adapt v0.3.0: now with Google Cloud Run support!