Skip to content

Best Practices

Andy Boothe edited this page May 12, 2025 · 2 revisions

Best Practices

Worker types are complex, and managing then can be tough. The use of var is strongly encouraged.

As a rule, we should prefer internal "hook" methods for customziation over parameters, e.g., Function, and encourage subclassing. This simplifies type management and keeps implementations where they belong, "inside" the worker classes, rather than sprinkled throughout the configuration code.

Clone this wiki locally