roc-lang / examples

All kinds of Roc examples

Home Page:https://www.roc-lang.org/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example suggestion: dealing with Tasks with different error types

Anton-4 opened this issue · comments

Task.await is easy to reach for but its type signature makes it look like all tasks involved need to have the same error type. In reality errors are automatically combined with open tag unions. This situation is worth an example because I imagine this could be a common question.