Skip to content

Instantly share code, notes, and snippets.

@davecra
Created June 12, 2017 23:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save davecra/dded2e4d26f4f6343b43fe215ad48c34 to your computer and use it in GitHub Desktop.
Completed OnSend Function
function asyncCompelte() {
// procress the result
if(isOkToSend() == true) {
sendEvent.completed({ allowEvent: true }); // send it
} else {
sendEvent.completed({ allowEvent: false }); // block it
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment