# Promise `[Shared]`

Promise is a module to transform callback-style functions into Promise-based operations, allowing for more elegant handling of asynchronous code.

## JO Functions

### jo.promise.new()

Creates a new Promise that wraps a callback function <br>
This utility transforms callback-style functions into Promise-returning functions <br>

#### Syntax

```lua
jo.promise.new(cb, ...)
```

#### Parameters

`cb` : _function_
> The callback function to be wrapped in a Promise
>

`...` : _mixed_
> Arguments to pass to the callback function
>

#### Return Value

Type : _..._

> The resolved values from the Promise
