Add IO/Task section to FAQ#1227
Merged
Merged
Conversation
Current coverage is 89.62% (diff: 100%)@@ master #1227 diff @@
==========================================
Files 234 234
Lines 3143 3143
Methods 3089 3089
Messages 0 0
Branches 51 51
==========================================
Hits 2817 2817
Misses 326 326
Partials 0 0
|
Member
|
👍 |
| - Is [scala.js](https://www.scala-js.org/) supported? | ||
| - Should you be able to block a thread waiting for the result of a task? This is really convenient for tests, but it isn't really compatible with a JavaScript runtime and therefore is an issue for [scala.js](https://www.scala-js.org/). | ||
|
|
||
| For some use-cases, a very simple `IO` is the best answer, as it avoids a lot of the overhead and complexity of other solutions. However, other use-cases require low-level concurrency control with asynchrony, resource management, and stack-safety. Considering all of the competing concerns, Cats has opted to not implement its own `IO`/`Task` types and instead encourage users to use a separate library that best serves their use-case. |
Contributor
There was a problem hiding this comment.
an alternate approach is use Free and specify the things you need to do, then finally interpret those into Xor, Try or Future at the end of the world. I think this is a good approach too because generally the IO winds up being kind of an Any side-effect when most times you have a pretty narrow scope.
We already have some nice Free docs to point to, right?
Contributor
Author
There was a problem hiding this comment.
@johnynek good point. I'll add a note about Free and point to the free docs.
Contributor
Author
There was a problem hiding this comment.
Added. Let me know what you think.
Member
|
👍 |
Contributor
|
👍 |
Contributor
|
👍 Thanks very much! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'd be particularly interested in reviews from @mpilquist and @alexandru. Please let me know if there's any way that I can improve the descriptions of Monix and fs2 Tasks.