G
G
Golem SDK
Search…
yapapi - Python high-level API
yajsapi - JavaScript high-level API
Yagna Contributor Guide
Class: Consumer
yajsapi / Exports / executor/smartq / Consumer

Class: Consumer

executor/smartq.Consumer

Type parameters

Name
Item

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Consumer(queue)
Type parameters
Name
Item
Parameters
Name
Type
queue
Defined in

Properties

_fetched

Private Optional _fetched: null | Handle
Defined in

_queue

Private _queue: any
Defined in

Methods

[Symbol.asyncIterator]

[Symbol.asyncIterator](): AsyncGenerator<Handle, any, any>
Returns
AsyncGenerator<Handle, any, any>
Defined in

done

done(): null
Returns
null
Defined in

last_item

last_item(): null | Item
Returns
null | Item
Defined in

ready

ready(): Consumer
Returns
Consumer
Defined in
Last modified 3mo ago