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
Some assumptions of Weave is that there is a single consumer of a future result (Flowvar or Pending) and that it tried to consume that result only once.
While we can't prevent the latter at compile-time, we can prevent the first by only allowing the sink/move operation on the type and making copies a compile-time error:
typeFlowvar[T] =objectproc`=`[T](dst: varFlowvar[T], src: Flowvar[T]) {.error: "copying not allowed".}
procnewFlowvar(T: typedesc): Flowvar[T] =discardlet x =newFlowvar(int)
However we get unresolved generic parameter at the moment due to upstream bug nim-lang/Nim#14315
The text was updated successfully, but these errors were encountered:
Some assumptions of Weave is that there is a single consumer of a future result (Flowvar or Pending) and that it tried to consume that result only once.
While we can't prevent the latter at compile-time, we can prevent the first by only allowing the sink/move operation on the type and making copies a compile-time error:
However we get unresolved generic parameter at the moment due to upstream bug nim-lang/Nim#14315
The text was updated successfully, but these errors were encountered: