Decorator: sending notifications
Add behaviour to a function by wrapping it in another function with the same signature.
Level Intermediate
What you will see
- One email, three extra jobs
- One function, one option per job
- A function that takes a notifier and returns one
- Before, after or around the call
- The order of the layers
- When not to use it
Before / after
Base: decorator-base-jsView the diff