4.7 JSCExecutor

Callback: JSCExecutor

A procedure given for it is called as (procedure resolve reject).

A function passed to jsc-value-new-promise called during initialization

It is called like a JavaScript function, so exceptions raised will not be propagated to the context, but handled by the promise causing a rejection. resolve and reject can be reffed for later use to handle async task completion.

resolve

Passed: a <JSCValue>.

<JSCValue> function to call to resolve the promise

reject

Passed: a <JSCValue>.

<JSCValue> function to call to reject the promise

user-data

Not passed: it is the user data that guile-gi supplied.

user data