yajsapi - Java Script high-level API
Yagna Contributor Guide

Class: Consumer

yajsapi / Exports / executor/smartq / Consumer

Class: Consumer

executor/smartq.Consumer

Type parameters

Name

Item

Hierarchy

  • Consumer

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Type parameters:

Name

Item

Parameters:

Name

Type

queue

SmartQueue

Returns: Consumer

Defined in: yajsapi/executor/smartq.ts:167

Properties

_fetched

Private Optional _fetched: undefined | null | Handle

Defined in: yajsapi/executor/smartq.ts:167

_queue

Private _queue: any

Defined in: yajsapi/executor/smartq.ts:166

Methods

[Symbol.asyncIterator]

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

Returns: AsyncGenerator<Handle, any, any>

Defined in: yajsapi/executor/smartq.ts:187

done

done(): null

Returns: null

Defined in: yajsapi/executor/smartq.ts:178

last_item

last_item(): null | Item

Returns: null | Item

Defined in: yajsapi/executor/smartq.ts:183

ready

ready(): Consumer

Returns: Consumer

Defined in: yajsapi/executor/smartq.ts:174