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
Stop token is separate from cancellation flag atm.
Let's see if it makes sense to combine the two under one token/context struct.
Motivation
Currently there are two parameters on scheduled operation callback - stopToken and bool. In most cases user doesn't need to know the reason of stopping.
Solution
We could simplify it to one parameter stopToken. Also in case user still need to get a reason of stopping we should add method reason() returning enum value Canceled or Stopped.
The text was updated successfully, but these errors were encountered:
Summary
Stop token is separate from cancellation flag atm.
Let's see if it makes sense to combine the two under one token/context struct.
Motivation
Currently there are two parameters on scheduled operation callback -
stopToken
andbool
. In most cases user doesn't need to know the reason of stopping.Solution
We could simplify it to one parameter
stopToken
. Also in case user still need to get a reason of stopping we should add methodreason()
returning enum valueCanceled
orStopped
.The text was updated successfully, but these errors were encountered: