pl.wendigo.chrome.api.runtime / AwaitPromiseRequest

AwaitPromiseRequest

data class AwaitPromiseRequest (source)

Represents request frame that can be used with Runtime#awaitPromise operation call.

Add handler to promise with given promise object id.

Link
Runtime#awaitPromise method documentation.

See Also

RuntimeOperations.awaitPromise

Constructors

<init>

AwaitPromiseRequest(promiseObjectId: RemoteObjectId, returnByValue: Boolean? = null, generatePreview: Boolean? = null)

Represents request frame that can be used with Runtime#awaitPromise operation call.

Properties

generatePreview

val generatePreview: Boolean?

Whether preview should be generated for the result.

promiseObjectId

val promiseObjectId: RemoteObjectId

Identifier of the promise.

returnByValue

val returnByValue: Boolean?

Whether the result is expected to be a JSON object that should be sent by value.