[New-bugs-announce] [issue32495] Adding Timer to multiprocessing
Jay Crotts
report at bugs.python.org
Thu Jan 4 17:57:15 EST 2018
New submission from Jay Crotts <crotts.jay at gmail.com>:
I wanted to propose the addition of a Timer class to the multiprocessing library similar to the one that exists in the Threading module.
Timer provides an example of how to extend the Process class that might be helpful to beginners.
The current lack of a Timer in the multiprocessing library could encourage newer programmers to use threads where processes would be more appropriate.
In the implementation below I have added the ability to specify a # of iterations that the timed function should execute, and an additional infinite argument that would make the process execute the given function until the Timer is explicitly stopped.
----------
components: Library (Lib)
files: Timer.py
messages: 309487
nosy: davin, jcrotts, pitrou
priority: normal
severity: normal
status: open
title: Adding Timer to multiprocessing
type: enhancement
versions: Python 3.7
Added file: https://bugs.python.org/file47364/Timer.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32495>
_______________________________________
More information about the New-bugs-announce
mailing list