Skip to content
Discussion options

You must be logged in to vote

Wrapping this conversation up...

Don't do what I did.

  • There is not a bug here. Everything is working as designed, but there is a pitfall that devs need to be wary of.
  • If you use a record for your state, you must be 100% certain that every state change is started and completed before the next state change can begin. UI frameworks will hopefully help enforce that.
  • Only use await in a with block if you are certain that your record reference can't be changed elsewhere during the await. (Personally, I will round this to "Never use await in a with block")

I'm still interested to know if await inside a with block is something that is possible in F#. It seems like a bad idea to release the UI t…

Replies: 15 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@CyrusNajmabadi
Comment options

Comment options

You must be logged in to vote
1 reply
@jnm2
Comment options

jnm2 Sep 9, 2020
Collaborator

Answer selected by jeremysheeley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #3857 on September 08, 2020 17:48.