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
Other than that, shared memory is directly available via the shared argument of any hook: this might seem convenient, but prevents adding more shared things, like a global memory (as requested in #22) and locks, which are currently implemented by adding the method at runtime.
In order to solve this problems, and allowing to create custom drivers more easily, a big rewrite of the whole thing is needed. The new API I want for it is:
# For a component's memoryshared.memory["mydata"] =shared.object("dict")
shared.memory["mydata"]["test"] ="yay"withshared.lock("hello"):
pass# A custom bucketbucket=bot.shared.bucket("test")
bucket.memory["mydata"] = "test
Move the functionality of shared into shared.memory
Use a custom proxy instead of the multiprocessing one, so it's easier to write custom drivers and the API is consistent between them
Add basic support for objects management
Add ability to export/import objects and switch drivers
Activity