Skip to content

Instantly share code, notes, and snippets.

@kpgalligan
Last active May 2, 2019 15:25
Show Gist options
  • Save kpgalligan/f15434ebb68682498d8497d874d66af6 to your computer and use it in GitHub Desktop.
Save kpgalligan/f15434ebb68682498d8497d874d66af6 to your computer and use it in GitHub Desktop.
worker.execute(TransferMode.SAFE, { MyStuff().freeze() }) { wrapper ->
try {
// Some Code...
} catch (e: Exception) {
trapOnUndeclaredException(e)
}
}
@SymbolName("Kotlin_ObjCExport_trapOnUndeclaredException")
internal external fun trapOnUndeclaredException(exception: Throwable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment