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
I'm working on wrapping specs in transactions. I'm using a Pulsar event to run code whenever a new database connection is created. The problem is that there are situations where I would like to be able to clear all the subscribers:
I'll be calling subscribe for every spec and I don't want multiple subscribers so I clear afterwards
In situations where I don't want to do the transaction code, I want to clear the subscriber if it exists
Would it make sense to add a public Pulsar::Event.clear to clear any subscribers? Don't know if that's a good name for it (I used clear_subscribers in my code)
I'm working on wrapping specs in transactions. I'm using a Pulsar event to run code whenever a new database connection is created. The problem is that there are situations where I would like to be able to clear all the subscribers:
Would it make sense to add a public
Pulsar::Event.clear
to clear any subscribers? Don't know if that's a good name for it (I usedclear_subscribers
in my code)Reference: luckyframework/avram#780
The text was updated successfully, but these errors were encountered: