mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
parent
0dbd4d8f1b
commit
e23601b924
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ Here's quick introduction to Promises. For more complete information, check out
|
|||
There are a few ways to create a Promise. The most common way is to call [Promise.new](/api/Promise#new):
|
||||
|
||||
```lua
|
||||
local myFunction()
|
||||
local function myFunction()
|
||||
return Promise.new(function(resolve, reject, onCancel)
|
||||
somethingThatYields()
|
||||
resolve("Hello world!")
|
||||
|
|
Loading…
Reference in a new issue