Package org.angular.ts.ng
Interface WorkerRequestOptions
@JsType(isNative=true,
name="ng.WorkerRequestOptions",
namespace="<global>")
public interface WorkerRequestOptions
Options for one correlated worker request.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerRequestOptionscreate()elemental2.dom.AbortSignalAbort the request without terminating the worker.doubleReject the request after this many milliseconds.elemental2.core.JsArray<Object> Transfer ownership of values contained by the request payload.voidsetSignal(elemental2.dom.AbortSignal signal) Abort the request without terminating the worker.voidsetTimeout(double timeout) Reject the request after this many milliseconds.voidsetTransfer(elemental2.core.JsArray<Object> transfer) Transfer ownership of values contained by the request payload.
-
Method Details
-
create
-
getSignal
@JsProperty elemental2.dom.AbortSignal getSignal()Abort the request without terminating the worker. -
getTimeout
@JsProperty double getTimeout()Reject the request after this many milliseconds. Defaults to 30 seconds. -
getTransfer
Transfer ownership of values contained by the request payload. -
setSignal
@JsProperty void setSignal(elemental2.dom.AbortSignal signal) Abort the request without terminating the worker. -
setTimeout
@JsProperty void setTimeout(double timeout) Reject the request after this many milliseconds. Defaults to 30 seconds. -
setTransfer
Transfer ownership of values contained by the request payload.
-