Replicating Hot Promise Behavior with Effects in TypeScript

What's the Effect equivalent of the following Promise-based pattern?
const responsePromise = waitForResponse() // Promise<Response>
await submitValue()
const promise = await responsePromise // Response


Specifically, what I can't figure out how to replicate is that the first promise is "hot" (i.e. started before starting the second promise) but non-blocking (we don't await it until after the second promise)
Was this page helpful?