Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.18 KB

AtomicsWaitAsyncResult.md

File metadata and controls

23 lines (16 loc) · 1.18 KB

AtomicsWaitAsyncResult

Namespace: SpawnDev.SpawnJS.JSObjects
Inherits: SpawnJSObject
Source: JSObjects/AtomicsWaitAsyncResult.cs
MDN Reference: AtomicsWaitAsyncResult on MDN

Result type returned from Atomics.WaitAsync() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/waitAsync#return_value

Constructors

Signature Description
AtomicsWaitAsyncResult(SpawnJSObjectReference _ref) Deserialization constructor

Properties

Property Type Access Description
Async bool get A boolean indicating whether the value property is a Promise or not.
ValueString string? get If async is false, it will be a string which is either "not-equal" or "timed-out" (only when the timeout parameter is 0). If async is true, it will be null.
ValueTask Task<string>? get If async is true, it will be a Task which is fulfilled with a string value, either "ok" or "timed-out". The promise is never rejected. If async is false, it will be null.