项目作者: hermannhueck

项目描述 :
Future vs. Monix Task - compares asynchronous abstractions Future and monix.eval.Task
高级语言: Scala
项目地址: git://github.com/hermannhueck/future-vs-monix-task.git
创建时间: 2018-12-07T15:59:40Z
项目社区:https://github.com/hermannhueck/future-vs-monix-task

开源协议:MIT License

下载


Future vs. Monix Task

This repo contains code & slides for my talk on this topic.



scala.concurrent.Future is familiar to nearly all Scala devs.

This presentation first talks about referential transparency and the IO Monad in general.
(Monix Task is an impl of the IO Monad.)

Then it compares Future Monix 3.x Task with their Pros and Cons.

Interop with Future: As Scala’s Future is used in many environments and libraries, we look at
the conversion from Task to Future and - vice versa - from Future to Task.

I will also take a look at Task evaluation, cancelation and memoization as well as tail recursive loops
and asynchronous boundaries.

The presentation will include a comparative discussion on ExecutionContext (required for Future)
and Scheduler (required for Task, but only to run it).

Often recurring on the valuable Monix Task doumentation at https://monix.io/docs/3x/eval/task.html
the presentation can also be seen as an introduction to Monix Task.



Resources