:mega: Short update. We managed to convert everyth...
# ktor
o
📣 Short update. We managed to convert everything to coroutines and also simplified and improved a lot of code. Application API is almost intact, except if you had
Nothing
-returning extension functions on PipelineContext, there is a trivial update: remove
Nothing
and make them suspending. For interceptors, there are more changes, though they are trivial too. Instead of
onFail
you have to use usual
try/catch
block, and onSuccess is no longer needed at all, because code just flows through suspending function still being async. There are more changes here and there, minor and major, depending on how deep into ktor you are integrating. I will be able to answer all questions, of course. Performance is significantly better (reqs/sec). In some cases 3 times better, in some just 50%. There is still a lot of room for improvement, so when everything will be working and as time permits, we will continue working on performance optimisations. I was looking into changes, and decided that migrating non-coroutine code first would be waste of time. So in next few days we will be checking how it all works in various apps we have, and after that master will become 0.3.0-SNAPSHOT, will require Kotlin 1.1, and will be full of suspend function. Hope you will enjoy it!
🎉 6