You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old @agoric/evaluate was synchronous, just like plain eval. This enabled the dynamic-vat creation device to allocate a vat-id, evaluate the new vat's source code, and return the vat-id to the caller, all in a single turn.
The new import-bundle function is async, to make room for more sophisticated module loading/importing mechanisms in the future.
The task is to rewrite the dynamic-vat creation code to accomodate this async function. The vat-id needs to be returned immediately, but we should allow the actual creation of the vat to happen later. We already send an async message back to the caller with a reference to the new vat's root object. The tricky bit is that the device doesn't get to participate in promises (vats do promises, but not devices), so hooking up the completion callback to a place that can do something useful with it will take a bit of work.
The text was updated successfully, but these errors were encountered:
The old
@agoric/evaluate
was synchronous, just like plaineval
. This enabled the dynamic-vat creation device to allocate a vat-id, evaluate the new vat's source code, and return the vat-id to the caller, all in a single turn.The new
import-bundle
function isasync
, to make room for more sophisticated module loading/importing mechanisms in the future.The task is to rewrite the dynamic-vat creation code to accomodate this async function. The vat-id needs to be returned immediately, but we should allow the actual creation of the vat to happen later. We already send an async message back to the caller with a reference to the new vat's root object. The tricky bit is that the device doesn't get to participate in promises (vats do promises, but not devices), so hooking up the completion callback to a place that can do something useful with it will take a bit of work.
The text was updated successfully, but these errors were encountered: