-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add closure variant of SignalBuilder::class_handler()
, use Value
traits for accumulator()
#365
Comments
|
This one is not so easy because of the |
Class handler is: If we make this a @jf2048 Do you maybe have an idea? Or @bilelmoussaoui @GuillaumeGomez ? :) Accumulator is: This has no |
SignalBuilder::class_handler()
and use Value
traits for accumulator()
SignalBuilder::class_handler()
, use Value
traits for accumulator()
and property binding transform functions
SignalBuilder::class_handler()
, use Value
traits for accumulator()
and property binding transform functionsSignalBuilder::class_handler()
, use Value
traits for accumulator()
Sorry, I missed this before. I can't think of a good way to do this without creating a second BTW it seems it may be possible to remove |
Also the way this is implemented right now makes no sense to me, the top-level class closure (registered with |
You need that token to pass it along for chaining up as otherwise you could chain up from everywhere and that's not allowed |
I don't think that is any worse than being allowed to call any of the |
Thread local tracking has runtime performance impact though |
I don't think it should have any more performance impact than what is happening now, it's essentially just taking the token and putting it on a thread local. It should still be better than the code inside gobject which always needs to lock the global mutex on all signal emissions What I mean though is you never chain up from the class handler, only from an overridden class handler. It's not needed in My main issue with getting rid of the token is that you lose some additional compile time checks that only turn into runtime panics. If we stick with the token there are some changes that should be probably be made, e.g.
|
Yeah you're probably right. I'm not opposed to changing this in any case if it solves some actual problem :)
I think you're right, that must've been some confusion that caused me to end up with the current API :) |
No description provided.
The text was updated successfully, but these errors were encountered: