import { RpcProxy } from "https://deno.land/x/rimbu@1.2.0/channel/mod.ts";
Interfaces
Defines the static |
Type Aliases
The RpcProxy error type | |
An RPC call path, consisting of an array of path parts | |
A part of an RPC call path, which can be either:
| |
Utility type to transform an object/API with potentially asynchronous calls into a synchronous one. This is used to allow RPC calls to act as though they are synchronous, but have only the resulting return type be asynchronous. |
import { type RpcProxy } from "https://deno.land/x/rimbu@1.2.0/channel/mod.ts";
A remote procedure call proxy that can be used to perform methods on a remote object as though it is accessible locally.
Methods
exec<R>(remoteFn: (proxy: RpcProxy.Unpromise<T>) => R): Promise<R>
Remotely executes the method/access performed on the provided proxy object, and resolves, when succesful, the result of the operation.
import { RpcProxy } from "https://deno.land/x/rimbu@1.2.0/channel/mod.ts";