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
One common use case for cancel tokens is "throw away all the old stuff, we have new orders". For example, when a browser browses to a new page it discards the old page.
Would have two methods (perhaps with shorter names): cancelCurrentAndReturnNewToken, currentToken. Perhaps also a cancelCurrentToken method.
Possible names: CancelTokenExchanger, SerialCancelTokenSource, RevolvingCancelTokenSource, ParenticidalCancelTokenSource.
The text was updated successfully, but these errors were encountered:
One common use case for cancel tokens is "throw away all the old stuff, we have new orders". For example, when a browser browses to a new page it discards the old page.
Would have two methods (perhaps with shorter names):
cancelCurrentAndReturnNewToken
,currentToken
. Perhaps also acancelCurrentToken
method.Possible names:
CancelTokenExchanger
,SerialCancelTokenSource
,RevolvingCancelTokenSource
,ParenticidalCancelTokenSource
.The text was updated successfully, but these errors were encountered: