const useAwait: <T, E = Error>( f: (cancelled: () => boolean) => Promise<T> | null | undefined, dependencies: any[], ) => [T | undefined, E | undefined, boolean]
Async wrapper
packages / live / src / hooks.ts