Replies: 1 comment
-
|
What you are attempting should totally work; you can return a curried function that takes care of building the client and creates a closure that can be make usage of that cached client. To destroy your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to figure out how I can cache clients for each worker. This is what my worker file looks like:
For some reason, the
cachedClientvariable isundefinedand I don't know how I could close the cachedClient if the worker is destroyed.Beta Was this translation helpful? Give feedback.
All reactions