u/kubukozcats,cats-effectin r/scala • Recommends
Making asynchronous programs functional with IO.async and IO.cancelable - Scala tutorial
#cats-effect#scala#asynchronous
3.7K subscribers • 30 videos on Hallway
Intermediate. Assumes working knowledge.
3K views6 years ago1 recommendation
Programming languagesSystems programmingScalaConcurrency and parallelismFunctional programming
Jakub Kozłowski explains how to lift asynchronous effects to IO and handle task cancellation using cats-effect in Scala.
After a long break, we're back to functional programming in Scala! This time we'll learn about lifting asynchronous effects to IO. If you liked the video, please upvote and subscribe! Table of contents: - Introduction, motivating example (promises in JavaScript) - Async/await syntax in JS land - Rewording the problem in Scala - IO.async - For comprehensions, a generalization of async/await in Scala - What's going on under the hood - Cancelation of asynchronous tasks - Comparison with cancelation without IO - Closing words Read the code: github.com/kubukoz/videos/tree/master/cats-async cats-effect: typelevel.org/cats-effect My talk about interruption: youtube.com/watch?v=EQWAQF6Yj5Qu/kubukozcats,cats-effectin r/scala • Recommends