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
This idea was gotten from serenity-rs/serenity, while their implementation is much more nuanced I believe this can be simplified fairly heavily for most use cases.
The idea is to have some data structure that is shared amongst events, possibly accessed via socket.data() or something similar. This can indirectly solve #363 and #425
Some example code may be as such, taking example of #363:
I am absolutely willing to work on this, it is exam week at my college so it might be a week or two before I can get around to it but this implementation would greatly help in cases where shared data is absolutely required.
The text was updated successfully, but these errors were encountered:
This idea was gotten from serenity-rs/serenity, while their implementation is much more nuanced I believe this can be simplified fairly heavily for most use cases.
The idea is to have some data structure that is shared amongst events, possibly accessed via
socket.data()
or something similar. This can indirectly solve #363 and #425Some example code may be as such, taking example of #363:
I am absolutely willing to work on this,
it is exam week at my college so it might be a week or two before I can get around to it but this implementation would greatly help in cases where shared data is absolutely required.The text was updated successfully, but these errors were encountered: