- Preparing search index...
- The search index is not available
Cygnus Reach
- usingAsync<T, U>(resource: T, body: ((resource: T) => Promise<U>)): Promise<U>
-
Parameters
-
resource: T
-
body: ((resource: T) => Promise<U>)
-
- (resource: T): Promise<U>
-
Returns Promise<U>
Returns Promise<U>
Execute a function with a disposable resource and clean up after the function scope ends.
Returns
Result of function