DenoDDeno
Powered by
ExidexE
Denoβ€’3y agoβ€’
2 replies
Exidex

Executing module multiple times

I have a script that can be imported using
await import()
await import()
statement. what goes inside brackets is resolved using
ModuleLoader
ModuleLoader
. But even if i call
await import()
await import()
multiple times
console.log
console.log
s seem to be executed only on first run. Is there a way to have the module executed multiple times? I want to avoid having to define functions inside a script file
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno deploy running my code multiple times
KayKKay / help
2y ago
'Spawn' multiple promises from the same module
jooJjoo / help
3y ago
Module loading
FridiousFFridious / help
3y ago
module augmentation
ZabiZZabi / help
4y ago