I'm using a third-party library that uses ReentrantReadWriteLock internally for synchronization. Of course, the library has no suspending function. For my project I'm using coroutines. Is it safe to use the library with coroutines suspending functions?
Asked
Active
Viewed 170 times
1 Answers
0
This is safe just make sure to wrap the code in runInterruptible(Dispatchers.IO) { }
.

Dominic Fischer
- 1,695
- 10
- 14