yajsapi - Java Script high-level API
Yagna Contributor Guide

Class: default

yajsapi / Exports / utils/queue / default

Class: default

utils/queue.default

Type parameters

Name

T

Hierarchy

  • default

Table of contents

Constructors

Properties

Methods

Constructors

constructor

  • new default(list?: never[]): default

Type parameters:

Name

T

Parameters:

Name

Type

Default value

list

never[]

...

Returns: default

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:42

empty

empty(): boolean

Returns: boolean

Defined in: yajsapi/utils/queue.ts:38

get

get(): Promise

Returns: Promise

Defined in: yajsapi/utils/queue.ts:25

put

put(item: T): void

Parameters:

Name

Type

item

T

Returns: void

Defined in: yajsapi/utils/queue.ts:19