JsHostJob Class

A job that the engine gives to the host to schedule (HostEnqueueGenericJob, HostEnqueueTimeoutJob): the host calls JsHostJob.Run later, on the thread of the engine (e.g. from a task of its event loop).

public sealed class JsHostJob

Properties

NameDescription
RealmGets the realm of the job: the current realm while it runs.

Gets the realm of the job: the current realm while it runs.

public JsRealm? Realm { get; }

Property value

JsRealm?

Methods

NameDescription
Run()Runs the job, in its realm. An exception goes to JsHost.ReportJobException. The promise jobs it enqueues are not run: the host runs them afterwards (JsEngine.RunJobs, e.g. a microtask checkpoint).

Runs the job, in its realm. An exception goes to JsHost.ReportJobException. The promise jobs it enqueues are not run: the host runs them afterwards (JsEngine.RunJobs, e.g. a microtask checkpoint).

public void Run()