Agent/MailboxProcessor in C# using new async/await

后端 未结 3 958
甜味超标
甜味超标 2020-12-30 11:28

This question combines two topics I don\'t fully understand

Reading through a paper about async in F#, I came across the topic of Agents/MailboxProcessors,

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 12:34

    In principle, I expect it would be straightforward to translate these F# APIs into C#-plus-async-await.

    In practice, I am unclear if it would come out beautiful, or ugly and full of extra type annotations, or simply un-idiomatic and in need of some API-massaging to make it feel more at home in C#. I think the jury is out until someone does the work and tries it. (I presume there is no such sample in the await CTP.)

提交回复
热议问题