To give more background on my question I having list that save Coroutines Job in a list so I’ll be able to cancel them when needed, I’m adding to the list Job from different Coroutines so it can be added from different threads so I need to do it in a safe way, the approach that I thinking to to do is write my own implementation with Coroutines Mutex, I could of course do it with Karel’s suggest but than I’ll the benefit of Coroutines my thread will become blocked.
any way I guess that my question was more relevant to #coroutines channel and not #general and also give the background so I’ll get specific answer and not general one which reflect my general question