# Resources about resumable code

**URL:** <https://forums.fsharp.org/t/resources-about-resumable-code/3533>\
**Category:** General\
**Created:** [February 7, 2024, 10:46am UTC](https://forums.fsharp.org/t/resources-about-resumable-code/3533 "2024-02-07T10:46:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbauduin](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/rbauduin/32/314_2.png) [@rbauduin](https://forums.fsharp.org/u/rbauduin)\
**Post date:** [February 7, 2024, 10:46am UTC](https://forums.fsharp.org/t/resources-about-resumable-code/3533/1 "2024-02-07T10:46:01Z")

</div>

Posted by @TheAngryByrd on the Discord channel:

First you must learn a bit about computation expressions:

- [Computation Expressions - F# | Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/computation-expressions)
- [Computation expressions: Introduction | F# for fun and profit](https://fsharpforfunandprofit.com/posts/computation-expressions-intro/)
- [Computation Expression Stub for F# · GitHub](https://gist.github.com/TheAngryByrd/4b9ce1e0bc7e2caf5b5d68c69a98d022)
- [F# Computation Expression Method Overload Resolution Ordering · GitHub](https://gist.github.com/TheAngryByrd/c8b9c8ebcda3bb162f425bfb281d2e2b)

Then you probably need to learn a bit about the C# async state machine generation:

- [https://www.youtube.com/watch?v=\_hZ8rk\_effg](https://www.youtube.com/watch?v=_hZ8rk_effg)
- [https://devblogs.microsoft.com/dotnet/how-async-await-really-works/](https://devblogs.microsoft.com/dotnet/how-async-await-really-works/)

Then you can read the RFC and community discussions around it:

- [fslang-design/FSharp-6.0/FS-1087-resumable-code.md at main · fsharp/fslang-design · GitHub](https://github.com/fsharp/fslang-design/blob/main/FSharp-6.0/FS-1087-resumable-code.md)
- [https://www.youtube.com/watch?v=GYi3ZMF8Pm0](https://www.youtube.com/watch?v=GYi3ZMF8Pm0)
- [https://www.youtube.com/watch?v=B6m\_vJ-a2dM](https://www.youtube.com/watch?v=B6m_vJ-a2dM)

See some code implementing it:

- [fsharp/src/FSharp.Core/tasks.fs at main · dotnet/fsharp · GitHub](https://github.com/dotnet/fsharp/blob/main/src/FSharp.Core/tasks.fs)
- [fsharp/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf at main · dotnet/fsharp · GitHub](https://github.com/dotnet/fsharp/tree/main/tests/benchmarks/CompiledCodeBenchmarks/TaskPerf/TaskPerf)
- [GitHub - TheAngryByrd/IcedTasks: F# Cold Tasks and Cancellable Tasks](https://github.com/TheAngryByrd/IcedTasks)
- [https://www.youtube.com/watch?v=BIoBvsr19GU](https://www.youtube.com/watch?v=BIoBvsr19GU)
- [GitHub - fsprojects/FSharp.Control.TaskSeq: A computation expression and module for seamless working with IAsyncEnumerable\<'T\> as if it is just another sequence](https://github.com/fsprojects/FSharp.Control.TaskSeq)
