[issue17956] add ScheduledExecutor

2016-02-10 Thread Tin Tvrtković
Tin Tvrtković added the comment: It's a shame this has been stuck in review for 2.5 years, I could really use something like this right now. neologix, why don't you put this up on PyPI for a while, at least? -- nosy: +tinchester ___ Python tracker

[issue17956] add ScheduledExecutor

2013-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > To be honest I can't find much to say about this proposal, > > Hum, OK, I thought it would be a useful addition :-) It's probably useful, but I'd have to take a closer look. It's been a long time I haven't used separate threads for timers... > Note that th

[issue17956] add ScheduledExecutor

2013-05-13 Thread Charles-François Natali
Charles-François Natali added the comment: > To be honest I can't find much to say about this proposal, Hum, OK, I thought it would be a useful addition :-) > but I think it would be good if the time function were configurable (both for > test purposes, and to allow passing e.g. time.monotonic

[issue17956] add ScheduledExecutor

2013-05-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: To be honest I can't find much to say about this proposal, but I think it would be good if the time function were configurable (both for test purposes, and to allow passing e.g. time.monotonic). I suppose this could be an executor option. -- _

[issue17956] add ScheduledExecutor

2013-05-12 Thread Charles-François Natali
Charles-François Natali added the comment: I'd like to have your opinion regarding some implementation choices I made. 1) There's a new ScheduledFuture deriving from Future, which adds methods to check if the task is periodic, to get the delay until the next scheduled execution, support re-armin

[issue17956] add ScheduledExecutor

2013-05-12 Thread Charles-François Natali
Charles-François Natali added the comment: > 1. Extends an abstract interface to support of a priority I'm not sure I see the use case for priority support, do you have a sample use case? Furthermore, the executor is backed by a thread pool, so tasks can be run concurrently. Finally, the order

[issue17956] add ScheduledExecutor

2013-05-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17956] add ScheduledExecutor

2013-05-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. Extends an abstract interface to support of a priority and absolute time. 2. Subclass sched.scheduler from this interface and implement missing methods. -- ___ Python tracker

[issue17956] add ScheduledExecutor

2013-05-11 Thread Charles-François Natali
Charles-François Natali added the comment: > It will be good to be compatible with sched.scheduler. What do you mean? Actually, this would kind of supersede the sched module (except that the sched module supports custom time and delay functions). By the way, for those that didn't realize it, it

[issue17956] add ScheduledExecutor

2013-05-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It will be good to be compatible with sched.scheduler. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue17956] add ScheduledExecutor

2013-05-11 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file30222/scheduled-2.diff ___ Python tracker ___ ___ Python-bugs-list

[issue17956] add ScheduledExecutor

2013-05-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +bquinlan, gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue17956] add ScheduledExecutor

2013-05-11 Thread Charles-François Natali
New submission from Charles-François Natali: Here's an implementation of a new ScheduledExecutor abstract class, with a concrete ScheduledThreadPoolExecutor implementation (see #995907). The aim is to provide a flexible, efficient and consistent framework for delayed and periodic tasks, leverag