KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a cancellation token like so static CancellationTokenSource TokenSource= new CancellationTokenSource(); I have a blocking collection like so BlockingCollection<object> items= new BlockingCollection<object>(); var item = items.Take(TokenSource.Token); if(TokenSource.CancelPending) return; When I call TokenSource.Cancel(); The Take does not continue like it should. If I use the TryTake with a poll the Token shows it is being set as Canceled.
Tags (comma-separated)
Save Edits
Cancel