yajsapi - JavaScript high-level API
Yagna Contributor Guide

Class: CommandEventContext

yajsapi / Exports / executor/events / CommandEventContext

Class: CommandEventContext

executor/events.CommandEventContext

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CommandEventContext(evt_cls)

Parameters

Name

Type

evt_cls

any

Defined in

yajsapi/executor/events.ts:341

Properties

evt

evt: CommandEvent

Defined in

yajsapi/executor/events.ts:341

Methods

computation_finished

computation_finished(last_idx): boolean

Parameters

Name

Type

last_idx

any

Returns

boolean

Defined in

yajsapi/executor/events.ts:395

event

event(agr_id, task_id, cmds): CommandEvent

Parameters

Name

Type

agr_id

string

task_id

string

cmds

any[]

Returns

CommandEvent

Defined in

yajsapi/executor/events.ts:405

fromJson

Static fromJson(json): CommandEventContext

Parameters

Name

Type

json

string

Returns

CommandEventContext

Defined in

yajsapi/executor/events.ts:346