Giampaolo Rodola' g.rod...@gmail.com added the comment:
What about run(nowait=...) or run(only_ready=...)?
Doing this as a separate method seems unnecessarily complicated to me in terms
of implementation (move run logic into _run, add run and run_nowait,
etc...).
Most importantly, the user
Antoine Pitrou pit...@free.fr added the comment:
That's a good point. Then perhaps call the flag wait or blocking, since it
avoids false positives and is more explicit than async?
--
___
Python tracker rep...@bugs.python.org
Giampaolo Rodola' g.rod...@gmail.com added the comment:
blocking seems the most explicit to me.
With this, we can also fix issue1641 by providing a specific section into
asyncore doc which explains how to use asyncore in conjunction with sched.
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 2975618965c0 by Giampaolo Rodola' in branch 'default':
Fix #13449: add 'blocking' parameter to sched.scheduler.run() so that the
scheduler can be used in non-blocking applications
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
assignee: - giampaolo.rodola
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13449
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +josiah.carlson, josiahcarlson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13449
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
components: +Library (Lib)
stage: - patch review
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13449
___
New submission from Giampaolo Rodola' g.rod...@gmail.com:
If True it would run the scheduled functions due to expire soonest (if any) and
then return.
This would make sched module usable into asynchronous applications.
--
messages: 148095
nosy: giampaolo.rodola
priority: normal
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file23746/sched-async.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13449
___
Antoine Pitrou pit...@free.fr added the comment:
I think this would be better served by a separate method. You could call it
e.g. run_nowait().
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13449
10 matches
Mail list logo