Skip to content

Instantly share code, notes, and snippets.

@davecra
Created June 12, 2017 23:41
Show Gist options
  • Save davecra/dded2e4d26f4f6343b43fe215ad48c34 to your computer and use it in GitHub Desktop.
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