-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CodeListener.onUncaughtException #1651
Conversation
19b61bc
to
df396a6
Compare
6317805
to
9762a1d
Compare
crash.mp4 |
9762a1d
to
7a96d43
Compare
|
6cfa5d6
to
7a96d43
Compare
Part of #1458 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That video looks pretty sweet
|
||
private inner class ZiplineCodeHost<A : AppService> : CodeHost<A> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was their a requirement to make this an inner class
?
(My over dislike of inner class
may have motivated this comment 😅)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It reduces the amount of boilerplate to share state with the enclosing class.
redwood-treehouse-host/src/commonMain/kotlin/app/cash/redwood/treehouse/TreehouseDispatchers.kt
Show resolved
Hide resolved
...d-views/src/main/kotlin/com/example/redwood/emojisearch/android/views/EmojiSearchActivity.kt
Outdated
Show resolved
Hide resolved
redwood-treehouse-host/src/commonMain/kotlin/app/cash/redwood/treehouse/TreehouseApp.kt
Show resolved
Hide resolved
e3659c2
to
4d8dd7e
Compare
This new API is called on host views when the guest code fails with an uncaught exception. This wires in a CoroutineExceptionHandler in the host code that cancels the current Zipline instance and updates all UIs its currently serving, if any. There is not yet any support for exceptions that occur in async code, or any mechanism to restart the Zipline instance after a crash.
…/redwood/emojisearch/android/views/EmojiSearchActivity.kt Co-authored-by: Jake Wharton <[email protected]>
54e0a63
to
3c6ff73
Compare
No description provided.