mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 10:30:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bbf9d739f0
commit
82d1ba83f2
14
Promise.js
14
Promise.js
@ -12,6 +12,11 @@ var object = require('ig-object')
|
||||
|
||||
|
||||
/*********************************************************************/
|
||||
// Iterable promise...
|
||||
//
|
||||
// Like Promise.all(..) but adds ability to iterate through results
|
||||
// via generators .map(..)/.reduce(..) and friends...
|
||||
//
|
||||
|
||||
var IterablePromise =
|
||||
module.IterablePromise =
|
||||
@ -203,6 +208,10 @@ object.Constructor('IterablePromise', Promise, {
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Interactive promise...
|
||||
//
|
||||
// Adds ability to send messages to the running promise.
|
||||
//
|
||||
|
||||
var InteractivePromise =
|
||||
module.InteractivePromise =
|
||||
@ -249,6 +258,11 @@ object.Constructor('InteractivePromise', Promise, {
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Cooperative promise...
|
||||
//
|
||||
// A promise that can be resolved/rejected externally.
|
||||
// NOTE: normally this has no internal resolver logic...
|
||||
//
|
||||
|
||||
var CooperativePromise =
|
||||
module.CooperativePromise =
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "5.0.0",
|
||||
"version": "5.0.3",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user