Const
E(x) returns a proxy on which you can call arbitrary methods. Each of these method calls returns a promise. The method will be invoked on whatever 'x' designates (or resolves to) in a future turn, not this one.
An example call would be
E(zoe).install(bundle) .then(installationHandle => { ... }) .catch(err => { ... });
See https://endojs.github.io/endo/functions/_endo_far.E.html for details.
target for method/function call
method/function call proxy
Readonly
get: <T>(x: T) => EGetters<LocalRecord<T>>E.get(x) returns a proxy on which you can get arbitrary properties. Each of these properties returns a promise for the property. The promise value will be the property fetched from whatever 'x' designates (or resolves to) in a future turn, not this one.
Readonly
resolve: {E.resolve(x) converts x to a handled promise. It is shorthand for HandledPromise.resolve(x)
Readonly
sendOnly: <T>(x: T) => ESendOnlyCallableOrMethods<RemoteFunctions<T>>E.sendOnly returns a proxy similar to E, but for which the results are ignored (undefined is returned).
Readonly
when: <T, U = T>(E.when(x, res, rej) is equivalent to HandledPromise.resolve(x).then(res, rej)
E(x) returns a proxy on which you can call arbitrary methods. Each of these method calls returns a promise. The method will be invoked on whatever 'x' designates (or resolves to) in a future turn, not this one.
E.get(x) returns a proxy on which you can get arbitrary properties. Each of these properties returns a promise for the property. The promise value will be the property fetched from whatever 'x' designates (or resolves to) in a future turn, not this one.
E.when(x, res, rej) is equivalent to HandledPromise.resolve(x).then(res, rej)