-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
Hooks are great but not super user-friendyl to deal with so we discussed a way to better separate their namespace.
Proposal
- split hooks into
main
andworker
- use
onReady
for both cases:- on
main
it meansonInterpreterReady
: there is an interpreter and it's just about to run its code - on
worker
it means thexworker
dance has been completed and all the features to enrich the worker world are available out of the box
- on
- use
main.onBeforeRun
,main.onBeforeRunAsync
,main.onAfterRun
andmain.onAfterRunAsync
- use
worker.codeBeforeRun
,worker.codeBeforeRunAsync
,worker.codeAfterRun
andworker.codeAfterRunAsync
This should both help understanding the different nature of the main
VS worker
fields + it clears out hooks that requires strings as code
Metadata
Metadata
Assignees
Labels
No labels