Just simple get request.
# ktor
y
Just simple get request.
e
Hi @yuya_horita. Do you run any workers?
y
Hi.
No
e
Could you provide
request
method call context?
This isn’t enough?
e
What coroutine dispatcher do you use to run the request?
y
I see.
Copy code
private class MainDispatcher: CoroutineDispatcher() {
    override fun dispatch(context: CoroutineContext, block: Runnable) {
        dispatch_async(dispatch_get_main_queue()) { block.run() }
    }
}
I defined above dispatcher and use it in CoroutineScope
ios.
ktor version is 1.0.1
@e5l How can I resolve? Thanks 🙏
e
Hi @yuya_horita, could you file an issue to track problem? I’m trying to reproduce the case
y
ok. one second.
I have already published this articles. The
InvalidMutabilityException
crash is mentioned here. I’ll file an issue to github, too.
e
Btw we have fully working sample in kotlinconfapp(1.1.1 ktor and 1.1.0 coroutines)
y
Oh, sorry. I’ll update it.
and, I’ll check the crash again in this version.
@e5l It works as I expected!! I’m sorry , but thanks 😉
🎉 1