Amber's Careware
|
558b61fe3d
|
Initial forked version
|
2022-10-24 20:14:27 -06:00 |
|
eryn L. K
|
e192db7946
|
Fix bug with Promise.fold
Closes #77
|
2022-01-02 23:18:12 -05:00 |
|
eryn L. K
|
893c43a90c
|
Cancel finally returned promise if outer cancelled
|
2021-12-28 05:24:19 -05:00 |
|
eryn L. K
|
afc245c4f1
|
Change behavior of finally
Closes #59
Closes #66
|
2021-12-28 04:23:54 -05:00 |
|
eryn L. K
|
2cb2eec152
|
Don't call queued callbacks from cancelled sub-promise
Closes #67
|
2021-12-27 23:15:44 -05:00 |
|
eryn L. K
|
34273a7efc
|
Close promise thread on finalize and cancel
Closes #76
|
2021-12-27 23:04:47 -05:00 |
|
eryn L. K
|
54e510d909
|
Use task.spawn instead of BindableEvent for await
|
2021-12-27 22:41:42 -05:00 |
|
eryn L. K
|
3138dab77a
|
Implement Promise.retryWithDelay
Closes #45
|
2021-12-27 22:23:18 -05:00 |
|
eryn L. K
|
9e51c039f7
|
Add onUnhandledRejection
Closes #54
|
2021-12-27 22:06:42 -05:00 |
|
eryn L. K
|
4e04458816
|
Support callable tables where functions are allowed
Closes #64
|
2021-12-27 21:46:19 -05:00 |
|
otrepanier
|
1ac7d3cae9
|
refactor implementation to support cancel
|
2020-11-30 16:34:13 -08:00 |
|
otrepanier
|
4fc7792c0c
|
implement Promise.fold
|
2020-11-20 14:14:27 -08:00 |
|
Eryn Lynn
|
a4256062a0
|
Fix casing
|
2020-08-24 13:25:09 -04:00 |
|
Eryn Lynn
|
eafa18be87
|
Merge branch 'master' into pr/40
|
2020-08-24 13:22:16 -04:00 |
|
Eryn Lynn
|
d47d597259
|
Fix #41
|
2020-08-24 13:20:47 -04:00 |
|
Niles
|
7dd656dede
|
Update init.spec.lua
|
2020-08-23 01:21:35 -05:00 |
|
Eryn Lynn
|
13ae48a5ee
|
Fix #31
|
2020-07-10 23:45:47 -04:00 |
|
Eryn Lynn
|
b4ba6d2414
|
Add Promise.fromEvent
closes #14
|
2020-05-29 02:10:45 -04:00 |
|
Eryn Lynn
|
e5843cf5a2
|
Add Promise.retry
Closes #16
|
2020-05-29 02:10:29 -04:00 |
|
Eryn Lynn
|
0c0d7f0464
|
Add Promise.each
closes #21
|
2020-05-13 19:48:45 -04:00 |
|
Eryn Lynn
|
266e265e20
|
Allow rejection with error objects
|
2020-05-11 15:43:35 -04:00 |
|
Eryn Lynn
|
faa4f73dd3
|
Add Promise:now()
closes #23
|
2020-05-06 19:22:48 -04:00 |
|
Eryn Lynn
|
ff345ea31b
|
Expose & refactor RuntimeError
|
2020-05-06 18:02:10 -04:00 |
|
Eryn Lynn
|
292e47293c
|
Let Promise:expect() throw rejection objects
|
2020-05-06 14:20:34 -04:00 |
|
Eryn Lynn
|
0c30e0c40b
|
Merge branch 'master' into use-xpcall
|
2020-05-05 18:15:45 -04:00 |
|
Eryn Lynn
|
1ca3fff6f5
|
Use xpcall, revamp error handling
|
2020-05-04 23:56:49 -04:00 |
|
Eryn Lynn
|
57d98880b5
|
make promisify test more clear
|
2020-04-17 20:00:54 -04:00 |
|
Eryn Lynn
|
85240d83b7
|
Fix rejection propagation issue
|
2019-11-12 23:07:43 -05:00 |
|
Eryn Lynn
|
75d82b4909
|
Add allSettled, some, and any
Closes #10
Closes #11
Closes #5
|
2019-09-29 02:03:22 -04:00 |
|
Eryn Lynn
|
bb13a0e2b6
|
Add Return and done
Closes #9
|
2019-09-28 22:03:06 -04:00 |
|
Eryn Lynn
|
3052ec1474
|
Add Promise.try
|
2019-09-28 18:54:49 -04:00 |
|
Eryn Lynn
|
f6c3dd163a
|
Make resolve/reject accept multiple values
Closes #4
|
2019-09-28 17:48:55 -04:00 |
|
Eryn Lynn
|
c0626c0baf
|
Make promisify catch errors
Closes #12
|
2019-09-28 17:38:35 -04:00 |
|
Eryn Lynn
|
f541fb7202
|
Remove status symbols
|
2019-09-28 01:56:58 -04:00 |
|
Eryn Lynn
|
4829a421db
|
Add Promise:tap
|
2019-09-28 01:33:06 -04:00 |
|
Eryn Lynn
|
17fac4d008
|
Make all/race cancel correctly
|
2019-09-28 00:13:30 -04:00 |
|
Eryn Lynn
|
3dbb121906
|
Make error more robust when misusing all/race
|
2019-09-27 18:46:10 -04:00 |
|
Eryn Lynn
|
ffaff8a4b1
|
Make new/async more explicit
|
2019-09-18 16:42:15 -04:00 |
|
Eryn Lynn
|
0139ed512f
|
Fix Promise.promisify and add test
|
2019-09-15 02:50:53 -04:00 |
|
Eryn Lynn
|
bf733e642f
|
Make cancellation propagate downstream
|
2019-09-12 03:58:56 -04:00 |
|
Eryn Lynn
|
9a1d1c3530
|
Update for release
|
2019-09-10 15:34:06 -04:00 |
|
Eryn Lynn
|
99cb3d62f5
|
Fully implement finally and cancellation
|
2018-10-24 02:33:30 -04:00 |
|
Lucien Greathouse
|
3b30a3fa70
|
Remove extra synchronization in Promise.all
|
2018-09-14 18:47:57 -07:00 |
|
Lucien Greathouse
|
639f0e8419
|
Formatting and comment wrapping
|
2018-09-14 13:47:10 -07:00 |
|
Lucien Greathouse
|
3c9881a478
|
Vararg cleanup and test robustness improvements
|
2018-09-14 13:38:52 -07:00 |
|
Lucien Greathouse
|
40acffb2f0
|
Improve robustness of Promise.all tests
|
2018-09-14 11:31:24 -07:00 |
|
Eryn Lynn
|
371f08598c
|
Implement Promise.all (#4)
|
2018-09-14 11:17:06 -07:00 |
|
Lucien Greathouse
|
bf3a3cf422
|
Rename internal _value field to _values
|
2018-06-16 19:42:14 -07:00 |
|
Lucien Greathouse
|
5010fa389a
|
Add Promise:getStatus() for checking on a promise's current status
|
2018-06-16 19:40:57 -07:00 |
|
Lucien Greathouse
|
8828d467c4
|
Use xpcall instead of pcall to create better stack traces
|
2018-05-21 14:13:53 -07:00 |
|