How to Create an Async?
Below are all the ways to create an Async.
| Method | Description |
|---|---|
| new Async(Async.Executor) | Create an Async with an Async.Executor |
| new Async(Func) | Create an Async with a Func |
| Async.resolve(Object) | Create a resolved Async returning the value |
| Async.reject(Object) | Create a rejected Async returning the error |