You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MoshiConverter crashes with: "Using blocking primitives on this dispatcher is not allowed. Consider using async channel instead or use blocking primitives in withContext(Dispatchers.IO) instead."
What you need to do is (In the MoshiConverter):
return withContext(Dispatchers.IO) {
val source = channel.toInputStream().source().buffer()
val type = request.type
moshi.adapter(type.javaObjectType).fromJson(source)
}
The text was updated successfully, but these errors were encountered:
MoshiConverter crashes with: "Using blocking primitives on this dispatcher is not allowed. Consider using async channel instead or use blocking primitives in withContext(Dispatchers.IO) instead."
What you need to do is (In the MoshiConverter):
The text was updated successfully, but these errors were encountered: