mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
Update readme
This commit is contained in:
parent
9a1d1c3530
commit
5d6c784e6d
2 changed files with 2 additions and 8 deletions
1
.vuepress/.gitignore
vendored
Normal file
1
.vuepress/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
dist/
|
|
@ -1,10 +1,3 @@
|
|||
---
|
||||
home: true
|
||||
actionText: API docs →
|
||||
actionLink: /lib/
|
||||
footer: MIT Licensed
|
||||
---
|
||||
|
||||
# Roblox Lua Promise
|
||||
An implementation of `Promise` similar to Promise/A+.
|
||||
|
||||
|
@ -26,7 +19,7 @@ This Promise implementation attempts to satisfy these traits:
|
|||
* Predictable timing
|
||||
|
||||
## Example
|
||||
This Promise implementation finished synchronously. In order to wrap an existing async API, you should use `spawn` or `delay` in order to prevent your calling thread from accidentally yielding.
|
||||
This Promise implementation finished synchronously. In order to wrap an existing async API, you should use `Promise.spawn` in order to prevent your calling thread from accidentally yielding.
|
||||
|
||||
```lua
|
||||
local HttpService = game:GetService("HttpService")
|
||||
|
|
Loading…
Reference in a new issue