UNPKG

@jsonjoy.com/reactive-rpc

Version:

Reactive-RPC is a library for building reactive APIs over WebSocket, HTTP, and other RPCs.

13 lines 313 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.of = void 0; const of = async (promise) => { try { return [await promise, undefined, true]; } catch (error) { return [undefined, error, false]; } }; exports.of = of; //# sourceMappingURL=of.js.map