JohSand

Results 6 comments of JohSand

I ran into this recently, and it seems that it happens when the byref is captured in a closure in the AfterCode. So Task.Run for backgroundTask, and the closures crated...

> The F# position (also OCaml, and to some extent Haskell) has historically been to avoid the somewhat addictive temptation to add pattern sugar and, for F#, to instead ask...

I had the idea to make a registration on the cancellation token, and setting an exception on promiseOfValueOrEnd there. There would be some book-keeping with disposing the registration, but nothing...

I understand that it is not a given which semantics are the most desirable. Especially since normal tasks and task-likes do not provide any natural hook for cancellation. While I'm...

Hi. For a repro, the easiest way is to bind Task.Yield(), which does in fact not return a Task, but a YieldAwatable. So with FS3559, I can repro it with...

I have taken a stab at an implementation. It seems to work, but I only replicated the test-cases that already existed, and more might be warranted.