Context 10 commandments
These rules are very important. Failure to follow these rules will lead
to incorrect events, diagnostics, extra warnings, exceptions, and possibly death.
- Get it as early as possible
- Release it as late as possible
- Do not forget to release the context
- Each sub should get its own
- Do not pass a context around
- Do not cache or store the context to use later
- Do not share a context
- Assumes it is obtained within a sub (not package scope)
- Do not alter the context internals
- Do not monkey-patch the context