Created
November 4, 2018 05:00
-
-
Save tcw165/3fd09df74853e6b2ec7efc45507a5767 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun Canvas.runSafely( | |
| lambda: Canvas.() -> Unit | |
| ) { | |
| val c = save() | |
| lambda.invoke(this) | |
| restoreToCount(c) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment