{"action":"created","issue":{"url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/11","repository_url":"https://api.github.com/repos/nathan-hoad/gbulb","labels_url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/11/comments","events_url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/11/events","html_url":"https://github.com/nathan-hoad/gbulb/issues/11","id":196116977,"number":11,"title":"Does call_soon work with normal functions ?","user":{"login":"stuaxo","id":179677,"avatar_url":"https://avatars.githubusercontent.com/u/179677?v=3","gravatar_id":"","url":"https://api.github.com/users/stuaxo","html_url":"https://github.com/stuaxo","followers_url":"https://api.github.com/users/stuaxo/followers","following_url":"https://api.github.com/users/stuaxo/following{/other_user}","gists_url":"https://api.github.com/users/stuaxo/gists{/gist_id}","starred_url":"https://api.github.com/users/stuaxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuaxo/subscriptions","organizations_url":"https://api.github.com/users/stuaxo/orgs","repos_url":"https://api.github.com/users/stuaxo/repos","events_url":"https://api.github.com/users/stuaxo/events{/privacy}","received_events_url":"https://api.github.com/users/stuaxo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T17:48:18Z","updated_at":"2016-12-21T00:27:27Z","closed_at":null,"body":"If I do this, then my dummy func never seems to get called:\r\n\r\n```\r\n        def dummy_func():\r\n            print(\"DUMMY FUNC\")\r\n            print(args)\r\n            print(kwargs)\r\n\r\n     loop.call_soon(dummy_func)\r\n```"},"comment":{"url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/comments/268399482","html_url":"https://github.com/nathan-hoad/gbulb/issues/11#issuecomment-268399482","issue_url":"https://api.github.com/repos/nathan-hoad/gbulb/issues/11","id":268399482,"user":{"login":"nathan-hoad","id":332492,"avatar_url":"https://avatars.githubusercontent.com/u/332492?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan-hoad","html_url":"https://github.com/nathan-hoad","followers_url":"https://api.github.com/users/nathan-hoad/followers","following_url":"https://api.github.com/users/nathan-hoad/following{/other_user}","gists_url":"https://api.github.com/users/nathan-hoad/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan-hoad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan-hoad/subscriptions","organizations_url":"https://api.github.com/users/nathan-hoad/orgs","repos_url":"https://api.github.com/users/nathan-hoad/repos","events_url":"https://api.github.com/users/nathan-hoad/events{/privacy}","received_events_url":"https://api.github.com/users/nathan-hoad/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T00:27:27Z","updated_at":"2016-12-21T00:27:27Z","body":"Can you provide a reproducible example? Because it works for me:\r\n\r\n```\r\nnhoad@nhoad-laptop ~ $ cat callsoon.py \r\nimport gbulb\r\ngbulb.install()\r\n\r\nloop = gbulb.get_event_loop()\r\n\r\n\r\ndef hello():\r\n    print('hello')\r\n\r\n\r\nloop.call_soon(hello)\r\nloop.run_forever()\r\nnhoad@nhoad-laptop ~ $ python callsoon.py \r\nhello\r\n^CTraceback (most recent call last):\r\n  File \"callsoon.py\", line 12, in <module>\r\n    loop.run_forever()\r\n  File \"/home/nhoad/.local/lib/python3.5/site-packages/gbulb/glib_events.py\", line 348, in run_forever\r\n    super().run_forever()\r\n  File \"/home/nhoad/.local/lib/python3.5/site-packages/gbulb/glib_events.py\", line 145, in run_forever\r\n    self.run()\r\n  File \"/home/nhoad/.local/lib/python3.5/site-packages/gbulb/glib_events.py\", line 324, in run\r\n    self._mainloop.run()\r\n  File \"/usr/lib/python3.5/site-packages/gi/overrides/GLib.py\", line 577, in run\r\n    raise KeyboardInterrupt\r\nKeyboardInterrupt\r\n```"}}
{"actor":{"display_login":"nathan-hoad"}}