{"action":"created","issue":{"url":"https://api.github.com/repos/jaredks/rumps/issues/22","labels_url":"https://api.github.com/repos/jaredks/rumps/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/jaredks/rumps/issues/22/comments","events_url":"https://api.github.com/repos/jaredks/rumps/issues/22/events","html_url":"https://github.com/jaredks/rumps/issues/22","id":45834414,"number":22,"title":"Timer object callbacks aren't executed asynchronously","user":{"login":"garrettngarcia","id":5336105,"avatar_url":"https://avatars.githubusercontent.com/u/5336105?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettngarcia","html_url":"https://github.com/garrettngarcia","followers_url":"https://api.github.com/users/garrettngarcia/followers","following_url":"https://api.github.com/users/garrettngarcia/following{/other_user}","gists_url":"https://api.github.com/users/garrettngarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettngarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettngarcia/subscriptions","organizations_url":"https://api.github.com/users/garrettngarcia/orgs","repos_url":"https://api.github.com/users/garrettngarcia/repos","events_url":"https://api.github.com/users/garrettngarcia/events{/privacy}","received_events_url":"https://api.github.com/users/garrettngarcia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-15T06:38:35Z","updated_at":"2015-09-13T19:34:53Z","closed_at":null,"body":"In the example below, the function \"a\" is not being called asynchronously.  The UI thread is blocked during each call to time.sleep and a spinner cursor is shown for 20 seconds.\r\n\r\nI may just be misunderstanding how Timer objects are supposed to work.  If that's the case, can you let me know if rumps includes a way to execute Timer callbacks (the \"a\" function in this case) in a separate thread?\r\n\r\n    import rumps\r\n    import time\r\n    \r\n    def a(_):\r\n        print \"blah\"\r\n        time.sleep(20)\r\n    \r\n    if __name__ == \"__main__\":\r\n        app = rumps.App('TestApp', menu=('Fake', 'All timers', 'Start timer', 'Stop timer'))\r\n        global_namespace_timer = rumps.Timer(a, 30)\r\n        global_namespace_timer.start()\r\n        app.run()"},"comment":{"url":"https://api.github.com/repos/jaredks/rumps/issues/comments/139911542","html_url":"https://github.com/jaredks/rumps/issues/22#issuecomment-139911542","issue_url":"https://api.github.com/repos/jaredks/rumps/issues/22","id":139911542,"user":{"login":"vikashbajaj","id":10935596,"avatar_url":"https://avatars.githubusercontent.com/u/10935596?v=3","gravatar_id":"","url":"https://api.github.com/users/vikashbajaj","html_url":"https://github.com/vikashbajaj","followers_url":"https://api.github.com/users/vikashbajaj/followers","following_url":"https://api.github.com/users/vikashbajaj/following{/other_user}","gists_url":"https://api.github.com/users/vikashbajaj/gists{/gist_id}","starred_url":"https://api.github.com/users/vikashbajaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikashbajaj/subscriptions","organizations_url":"https://api.github.com/users/vikashbajaj/orgs","repos_url":"https://api.github.com/users/vikashbajaj/repos","events_url":"https://api.github.com/users/vikashbajaj/events{/privacy}","received_events_url":"https://api.github.com/users/vikashbajaj/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T19:34:53Z","updated_at":"2015-09-13T19:34:53Z","body":"Is it resolved? I am still facing this issue."}}