Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjosolutions/luaresolvable
A library for working with resolvables. Resolvables are similar to promises or futures.
https://github.com/sanjosolutions/luaresolvable
wow wow-addon wow-addon-lib
Last synced: 23 days ago
JSON representation
A library for working with resolvables. Resolvables are similar to promises or futures.
- Host: GitHub
- URL: https://github.com/sanjosolutions/luaresolvable
- Owner: SanjoSolutions
- License: unlicense
- Created: 2022-12-22T22:01:07.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T17:16:36.000Z (about 1 year ago)
- Last Synced: 2024-05-01T19:25:54.525Z (8 months ago)
- Topics: wow, wow-addon, wow-addon-lib
- Language: Lua
- Homepage: https://www.patreon.com/addons_by_sanjo
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Resolvable
A library for working with resolvables. Resolvables are similar to promises or futures.
This library can save add-on developers some work.## Things included
* **Resolvable.Resolvable**: a class for a resolvable.
* **Resolvable.Resolvable:new**: a constructor for creating a resolvable.
* **Resolvable.Resolvable:afterResolve** / **Resolvable.Resolvable.after**: a method for registering a callback which is called after the resolvable is resolved.
* **await** / **Resolvable.await**: a function for awaiting on a promise. Can only be used in a coroutine.
* **Resolvable.all**: a function for creating a new resolvable which resolves when all resolvables, that have been passed, have been resolved."**Resolvable.Resolvable:new**" returns a second return value, which is a table with internal methods which can be used
by the creator of the resolvable. Those include:* **resolve**: a method to resolve the resolvable.