yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: default

yajsapi / Exports / utils/queue / default

Class: default

utils/queue.default

Type parameters

Name

T

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new default(list?)

Type parameters

Name

T

Parameters

Name

Type

Default value

list

any[]

[]

Defined in

yajsapi/utils/queue.ts:7

Properties

__new_items

Private __new_items: any

Defined in

yajsapi/utils/queue.ts:7

_tasks

Private _tasks: any

Defined in

yajsapi/utils/queue.ts:6

Methods

close

close(): void

Returns

void

Defined in

yajsapi/utils/queue.ts:41

empty

empty(): boolean

Returns

boolean

Defined in

yajsapi/utils/queue.ts:37

get

get(): Promise

Returns

Promise

Defined in

yajsapi/utils/queue.ts:24

put

put(item): void

Parameters

Name

Type

item

T

Returns

void

Defined in

yajsapi/utils/queue.ts:18