Closed erksch closed 3 years ago
I am trying to log with Napier from within an async block.
async
fun testLog() = coroutineScope { someList.map { element -> async { Napier.d( "Processing $element") someSuspendFunc(element) Napier.d("Done processing $element") } }.awaitAll() }
Running the code in iOS gives the following error:
kotlin.native.IncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
Any solution for this?
Please check 2.0.0-alpha2
2.0.0-alpha2
I am trying to log with Napier from within an
async
block.Running the code in iOS gives the following error:
Any solution for this?