xbmc.Monitor.waitForAbort
#1
Hi,

Has 'xbmc.Monitor.waitForAbort' been implemented as discussed here?: http://forum.kodi.tv/showthread.php?tid=196360&page=2

I'd just like to verify that the behavior is such that the method returns at the time abort is requested rather than waiting for the sleep cycle to expire (allowing the loop to have a very large time for sleep). The API changes haven't made it into PyDocs yet...

I'd also like to verify that the call is in seconds as opposed to ms as it was in abortRequested. If so, does it accept float as well as int?

Thanks.
Reply
#2
Yes to both. It's the same as python's threading.Event.wait() method so you can see docs for that. There's also an example usage on the Service addons (wiki) wiki page explaining it.
Reply
#3
Thanks!

Would it be worthwhile creating a sticky thread here in the Python Add-on Development forum with a link to the API changes, similar to sticky thread that is there for Gotham? I would just do it but I don't seem to have permissions.
Reply
#4
Me neither, I think. Ask a mod? Not sure it it's worth the trouble though. As you can see, maintain sticky threads quickly becomes a burden.
Should teach people to go to the wikiSmile
Reply
#5
Like this?
http://kodi.wiki/view/Helix_API_changes

Forum threads are not that easy to maintain like Takoi said. Changes should be documented on the wiki.
Still need to move the Gotham changes to the wiki
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#6
(2014-12-04, 13:22)Martijn Wrote: Like this?
http://kodi.wiki/view/Helix_API_changes

Forum threads are not that easy to maintain like Takoi said. Changes should be documented on the wiki.
Still need to move the Gotham changes to the wiki

Both you and Takoi have good points.

For me, because there was a sticky for Gotham, I was waiting for a sticky for Helix to appear here, so I wasn't looking in the Wiki.
So maybe remove the sticky for Gotham? Or create a sticky thread with just the link and close it for comment?

Just for consistency sake...
Reply
#7
(2014-12-04, 13:22)Martijn Wrote: Like this?
http://kodi.wiki/view/Helix_API_changes

I don't want to sound too critical, but such listing without detailed info (e.g. method signatures and return types) is practically useless. As a maintainer of XBMCstubs, I'd want to add the info to the Kodi module stubs.
Reply
#8
(2014-12-04, 22:55)Roman_V_M Wrote:
(2014-12-04, 13:22)Martijn Wrote: Like this?
http://kodi.wiki/view/Helix_API_changes

I don't want to sound too critical, but such listing without detailed info (e.g. method signatures and return types) is practically useless. As a maintainer of XBMCstubs, I'd want to add the info to the Kodi module stubs.
It's a wiki, and you know where to find the module source code for the full docs. I don't want to sound too critical either, but frankly, if you are not happy about the page you have only yourself to blame.
Reply
#9
Cant see anything about it here: http://mirrors.xbmc.org/docs/python-docs/14.x-helix/
Reply
#10
(2015-01-05, 15:02)Karnagious Wrote: Cant see anything about it here: http://mirrors.xbmc.org/docs/python-docs/14.x-helix/

still need to update those docs. will try tonight
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#11
(2015-01-05, 15:03)Martijn Wrote:
(2015-01-05, 15:02)Karnagious Wrote: Cant see anything about it here: http://mirrors.xbmc.org/docs/python-docs/14.x-helix/

still need to update those docs. will try tonight

Ta.
Reply
#12
updated
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#13
I guess it takes some time to propagate or something? I still see 'last updated 22.08.2014'..
Reply
#14
(2015-01-05, 19:51)takoi Wrote: I guess it takes some time to propagate or something? I still see 'last updated 22.08.2014'..
that's a manual date which i forgot to change and don't have time to do anymore. docs are updated
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#15
When calling monitor.waitForAbort(0.0), it seems to wait forever (which makes sense from looking at the implementation).
Is this behavior intended?
This was not so obvious (from the documentation) to me and I needed to do a workaround in my addon.
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.Monitor.waitForAbort0