const myClient = yield* MyRpcClient;
const exit = yield* Effect.exit(myClient.group.doSomething({ ... }));
{
_id: 'Exit',
_tag: 'Failure',
cause: {
_id: 'Cause',
_tag: 'Interrupt',
fiberId: {
_id: 'FiberId',
_tag: 'Runtime',
id: 132,
startTimeMillis: 1760517566310
}
}
}
const RpcLayer = Layer.unwrapEffect(
Effect.gen(function* () {
const url = yield* Config.string('RPC_ENDPOINT');
return MyRpcClient.Default.pipe(
Layer.provide(
RpcClient.layerProtocolHttp({ url }).pipe(Layer.provide(RpcSerialization.layerJson)),
),
Layer.provide(FetchHttpClient.layer),
);
}),
);
const myClient = yield* MyRpcClient;
const exit = yield* Effect.exit(myClient.group.doSomething({ ... }));
{
_id: 'Exit',
_tag: 'Failure',
cause: {
_id: 'Cause',
_tag: 'Interrupt',
fiberId: {
_id: 'FiberId',
_tag: 'Runtime',
id: 132,
startTimeMillis: 1760517566310
}
}
}
const RpcLayer = Layer.unwrapEffect(
Effect.gen(function* () {
const url = yield* Config.string('RPC_ENDPOINT');
return MyRpcClient.Default.pipe(
Layer.provide(
RpcClient.layerProtocolHttp({ url }).pipe(Layer.provide(RpcSerialization.layerJson)),
),
Layer.provide(FetchHttpClient.layer),
);
}),
);