Hi There! 👋🏻
It's been a while since I wrote something about C#, or wrote anything in general, but now I have an interesting concept tha...
For further actions, you may consider blocking this person and/or reporting abuse
Good primer. I read this as someone who already knows and uses cancellationTokens (the way it was intended, not just default value and ignoring). One thing I'd recommend adding to this is an example and using linked sources through CancellationTokenSource.CreateLinkedTokenSource(...). This is where cancellation tokens get really powerful because you then get your own token that you can use and cancellation can be reacted to wether it's the original token or yours. I use this technique in my ParentElement.ReProcess package (source is on GitHub).
Tysm for mentioning that!
I was thinking of making a sequel to this post where I delve into more details and code samples, so I'll definitely come back to your recommendation!
I have used CacellationTokens when running BackgroundService tasks. But I never thought about using them with EF core retrieving data as shown in the example.
Awesome content!
this is very useful information
It is great!!
Why are you mixing Thread.Sleep and async/await?
Thanks for pointing that out!
learned something which could be useful!
Good article on a topic probably not considered often enough, good job 👍🏻
Thank you! Glad you liked it
Awensome post!
thank you
Glad that was useful 😁
It's very useful
Hey Rasheed! How is Flow going? Have you finished your second version?
Hey mate!
Uhh unfortunately i couldn't proceed with the development, I got swamped with some freelance work, college assignments and I'm preparing to start my new job next month, so I had to stop working on Flow, i dunno if I'll get back to it later or not, but I'm sure once everything settles, I'll find some time to continue working on it!
Okay... sounds good. Thanks Rasheed.