Methods
(async) receive() → {Promise.<object>}
- Source:
Returns:
- Type:
-
Promise.<object>
- a promise that resolves the item when buffer contains or sended
(async) send(item) → {Promise}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
item |
object
|
sending item |
Returns:
- Type:
-
Promise
- a promise that resolves immediately