Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async void func () {
- var update = Updated.connect ( () => {
- func.callback ();
- });
- var tid = Timeout.add_full (() => {
- tid = 0;
- func.callback ();
- return false;
- });
- yield;
- if (tid != 0)
- Source.remove (tid);
- Updated.disconnect (update);
- }
Add Comment
Please, Sign In to add comment