Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- suspend fun getData() {
- withContext(ioDispatcher) {
- someFun() {
- anotherFun() // ойой, нельзя выполнять не в корутине!
- }
- }
- }
- fun someFun(onSomeIvent: () -> Unit){
- onSomeIvent()
- }
- suspend fun anotherFun()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement