update documentation to include canceling callback