Skip to content
0:00 / 0:00

#cats-effect#scala#asynchronous

Making asynchronous programs functional with IO.async and IO.cancelable - Scala tutorial

Jakub Kozłowski

3.7K subscribers • 30 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Jakub Kozłowski
  • Linked in the descriptionkubukoz/videos

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=EQWAQF6Yj5Q

Why it's here

1 person recommends this

u/kubukozcats,cats-effectin r/scala • Recommends

Making asynchronous programs functional with IO.async and IO.cancelable - Scala tutorial