You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If runFork is a core, recommended way to run code, I'd expect it to have documentation in the API Reference, but it is undocumented with no JSDoc description or anything, just a type signature.
The only example of using runFork in the running effects documentation is extremely contrived - if I wanted to, say, "get the result of the effect," I have no idea how to do that. It seems like i'd interrupt the fiber intermittently until it returns, but that seems weird, inefficient, and very different from the norms of promises or async/await or anything else in TS, and there are no examples of doing that.
What is the type of issue?
Documentation is confusing
What is the issue?
The docs for runFork say that
This is confusing to me:
The only example of using
runFork
in the running effects documentation is extremely contrived - if I wanted to, say, "get the result of the effect," I have no idea how to do that. It seems like i'd interrupt the fiber intermittently until it returns, but that seems weird, inefficient, and very different from the norms of promises or async/await or anything else in TS, and there are no examples of doing that.Where did you find it?
https://effect.website/docs/guides/essentials/running-effects#runfork
The text was updated successfully, but these errors were encountered: