I think it might be already possible to get the sa...
# coroutines
j
I think it might be already possible to get the same behavior with something like a read-write lock. Essentially if you want the blocking behavior above then get the write lock, and otherwise get the read lock right after entering the
limitedParallelism
context. This way the write lock avoids other coroutines from touching the data in my object while the first coroutine suspends. But I think the virtual threads + coroutines version is much cleaner and more efficient.