Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

F# Async workflow

Tags:

f#

Is there a way to look at the definition of the Async workflow? What goes under the hood that would make a line of code behave differently in there, than outside of it?

like image 513
akaphenom Avatar asked Jun 16 '10 18:06

akaphenom


People also ask

How can I open my old facebook account without password?

Keep in mind that you'll need access to the email associated with your account. Tap Forgot Password?. Type the email, mobile phone number, full name or username associated with your account, then tap Search. Follow the on-screen instructions.


2 Answers

If by "the Async workflow", you mean the AsyncBuilder type which defines the behavior of async blocks, then you can find the definition in the control.fs file in the source distribution, in the source\fsharp\FSharp.Core folder.

The translation of a computation expression into method calls on the builder instance can be found in the F# spec.

like image 92
kvb Avatar answered Nov 04 '22 10:11

kvb


Adding to kvb's advice, relevant Don's "Expert F#" chapter is available online:

http://download.microsoft.com/download/b/b/6/bb666ebe-e643-496f-b290-03527d157b47/Expert.F.Sharp_Ch13_8504Syme.pdf

It includes a short but informative "Under the Hood" section.

like image 23
Dmitry Lomov Avatar answered Nov 04 '22 09:11

Dmitry Lomov