Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
k-l-lambda
/
lotus
like
2
Running
App
Files
Files
Community
76a2ad7
lotus
/
inc
/
asyncCall.ts
k-l-lambda
commit lotus dist.
d605f27
about 2 months ago
raw
Copy download link
history
blame
Safe
198 Bytes
const
asyncCall = (func, ...args):
Promise
<
any
> =>
new
Promise
(
(
resolve, reject
) =>
func
(...args,
(
err, data
) =>
{
if
(err)
reject
(err);
else
resolve
(data);
}));
export
default
asyncCall;