Nesting custom operations within bind closures for computation expressions #12923
gerardtoconnor
started this conversation in
General
Replies: 3 comments
-
I'm curious, do you have a minimal working example that shows the erroneous behaviour? |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's in my Zebra lib here https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/FSharp/zebra/src/App/Program.fs |
Beta Was this translation helpful? Give feedback.
0 replies
-
I was hoping for a self contained minimal test case to repro this behavior. But perhaps for others it's clear and it won't be needed, but often such repro helps a lot in understanding an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a CE that uses customOperations and uses bind for binding async tasks, if a place binds (let!) after binds, they are nested continuations, but using any customOperations after any binds means they run instantly after the async starts (task returned), and not being wrapped up into the let! continuations like is the case with subsequent binds. I have been using the
MaintainsVariableSpaceUsingBind=true
given it's a binding CE, but no matter what permutations of attributes I use, I cannot get customOperations to wrapped up into the bind continuations, they run immediately after the async work starts, completing before the bind continuation subsequently starts.At the end of my use of customOperations before bind, I can Bind the
INode<'T>
state into ctx before the bind continuations start, its just the post customOperations that I want to get wrapped into the bind continuations that are the problem. @dsyme may be one of the few people able to assist as I know CE & CustomOperations are a but nicheBeta Was this translation helpful? Give feedback.
All reactions