Locating runPromise/runSync in Effect.fn Definition for Execution

is it possible to locate a runPromise/runSync in the Effect.fn definition? I know that the 2..n params of Effect.fn can be used to pipe through, but the type system doesn't allow runPromise/Sync here

e.g.
const fetchUser = Effect.fn("fetchUser")(function* () {
  const rpc = yield* RpcClient;

  return yield* rpc.users.get({ path: { id: "abc" } });
}); // how to execute the effect so that createResource below returns the executed value

function Home() {
  const [data, { mutate, refetch }] = createResource(fetchUser); 

  return (
    <>
      <h1>testing effect rpc</h1>
    </>
  );
}
Was this page helpful?