Closed forslund closed 4 years ago
Good comments all around will try to get an update done tonight / tomorrow
Good comments all around will try to get an update done tonight / tomorrow
Cool! Any work you do on this is much appreciated, and if you run out of steam I can always take and run with your work.
The testcase became a bit more convoluted since the removal is done before the target function is called (I guess to minimize the risk of this kind of race). Let me know if the solution is too hacky.
I dropped the test commit from the branch and squashed the remaining two commits into a single one. should be good to go now.
Released in 8.1.0. Thanks!
This is a naive locking approach to the issue reported in #76
This PR adds a check in the once-wrapper that listener method is still registered before removing. To ensure atomic execution a lock is added around removals of listeners.