You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at work I have the following code to bridge between Tasks and Hopac Jobs seamlessly:
// TaskBuilder marks a particular module as obsolete because it's not intended to be used normally. we're extending it to work better with Jobs, so that should be disregarded#nowarn"44"moduleTPLHopac =openChessie.HopacopenFSharp.Control.Tasks.TaskBuildertypeTaskBuilderV2withmember inline__.Bind(job :#Job<'a>,continuation :'a ->'b Step):'b Step = bindTaskConfigureFalse (Hopac.startAsTask job) continuation
member inline__.Bind(job :JobResult<'a,'err>,continuation :Chessie.ErrorHandling.Result<'a,'err>->'b Step):'b Step = bindTaskConfigureFalse (Hopac.startAsTask (JobTrial.toJobOfResult job)) continuation
member inline__.ReturnFrom(job :#Job<'a>)= bindTaskConfigureFalse (Hopac.startAsTask job) ret
member inline__.ReturnFrom(job :JobResult<'a,'err>)= bindTaskConfigureFalse (Hopac.startAsTask (JobTrial.toJobOfResult job)) ret
we have 'warnings as errorsset for warning 44 across the project file, but for this particular use it's unavoidable: the TaskBuilder.fs library marks theTaskBuilder` module obsolete to prevent casual use.
This code compiles via the compiler correctly, but either FCS or portacode don't recognize the inline #nowarn directive.
The text was updated successfully, but these errors were encountered:
at work I have the following code to bridge between Tasks and Hopac Jobs seamlessly:
we have 'warnings as errors
set for warning 44 across the project file, but for this particular use it's unavoidable: the TaskBuilder.fs library marks the
TaskBuilder` module obsolete to prevent casual use.This code compiles via the compiler correctly, but either FCS or portacode don't recognize the inline
#nowarn
directive.The text was updated successfully, but these errors were encountered: