Optimally we should "pre-compile" the combinator pipelines by applying the next parameter, usually finishEarly which is the same thing as Ok >> Task.FromResult. However this is not that easy for parameterised pipelines such as https://github.com/cognitedata/cognite-sdk-dotnet/blob/master/src/assets/ListAssets.fs#L61 since it needs the request content and thus we need to "compile" the pipeline for every request. How can we make such a pipeline "compiled" once for all requests?
Optimally we should "pre-compile" the combinator pipelines by applying the
next
parameter, usuallyfinishEarly
which is the same thing asOk >> Task.FromResult
. However this is not that easy for parameterised pipelines such as https://github.com/cognitedata/cognite-sdk-dotnet/blob/master/src/assets/ListAssets.fs#L61 since it needs the request content and thus we need to "compile" the pipeline for every request. How can we make such a pipeline "compiled" once for all requests?Ref: https://medium.com/@gerardtoconnor/carry-on-continuation-over-binding-pipelines-for-functional-web-58bd7e6ea009