What is the purpose of "do!" notation in F#?

Posted by Yacoder on Stack Overflow See other posts from Stack Overflow or by Yacoder
Published on 2010-04-16T10:00:25Z Indexed on 2010/04/16 10:03 UTC
Read the original article Hit count: 278

Filed under:
|

I'm a beginner in F#, so it's a simple question and maybe a duplicate, but I couldn't find the answer anywhere...

I'm reading this LOGO DSL implementation and I don't understand, what is the meaning of the "do!" notation in here:

    this.Loaded.Add (fun _ ->
        async {
            do! Async.Sleep 200
            for cmd in theDrawing do
                do! this.Execute(cmd)
        } |> Async.StartImmediate 
    )

Can you help?

© Stack Overflow or respective owner

Related posts about F#

Related posts about beginner