Created
April 29, 2017 14:12
-
-
Save smaugho/771f598553fef6dc14a5d781f8c28b7e to your computer and use it in GitHub Desktop.
Sugar Syntax with Actions
This file contains 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
$PutModel(user).withProgress("Saving user...") | |
.onFailed().toast("An error occurred"); | |
$PutModel(user).always().code("checkState();") | |
.onDone().toast("User was saved") | |
.onFailed().toast("An error occurred"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment