Skip to content

The future of globalPreload #124

Answered by giltayar
GeoffreyBooth asked this question in Q&A
Discussion options

You must be logged in to vote

I currently don't use port because the loader works "on thread", and so I can communicate via global variables.

But I already changed what needs to change to support "off thread" work, and you can see the globalPreload code which uses port here: https://github.com/testdouble/quibble/blob/support-off-thread-loaders/lib/quibble.mjs#L128

So, yes: globalPreload with port is necessary exactly for when loaders become "off thread".

Replies: 9 comments 27 replies

Comment options

You must be logged in to vote
2 replies
@GeoffreyBooth
Comment options

@giltayar
Comment options

Answer selected by giltayar
Comment options

You must be logged in to vote
22 replies
@arcanis
Comment options

@GeoffreyBooth
Comment options

@giltayar
Comment options

@GeoffreyBooth
Comment options

@giltayar
Comment options

Comment options

You must be logged in to vote
1 reply
@GeoffreyBooth
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GeoffreyBooth
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@GeoffreyBooth
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants