You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.