Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.99 KB

inbox.md

File metadata and controls

56 lines (32 loc) · 1.99 KB

Table of Contents

constructor

inbox.js:23-31

The inbox manages and sorts incoming messages and provides functions to wait on messages

Parameters

queue

inbox.js:37-47

queues a message

Parameters

  • message Message

nextTaggedMessage

inbox.js:55-66

Waits for a message sent with a capablitly that has one of the given tags

Parameters

  • tags Array<any>
  • timeout Integer

Returns Promise

nextMessage

inbox.js:73-109

Waits for the the next message if any

Parameters

  • timeout Integer (optional, default 0)

Returns Promise