PromiseResult

types/vm_typesDocs


near-sdk-js v2.0.0 / types/vm_types / PromiseResult

Enumeration: PromiseResult

A Promise result in near can be one of:

  • NotReady = 0 - the promise you are specifying is still not ready, not yet failed nor successful.

  • Successful = 1 - the promise has been successfully executed and you can retrieve the resulting value.

  • Failed = 2 - the promise execution has failed.

Enumeration Members

Failed

Failed: 2

Defined in

packages/near-sdk-js/src/types/vm_types.ts:19


NotReady

NotReady: 0

Defined in

packages/near-sdk-js/src/types/vm_types.ts:17


Successful

Successful: 1

Defined in

packages/near-sdk-js/src/types/vm_types.ts:18

Last updated