[New-bugs-announce] [issue32495] Adding Timer to multiprocessing
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)
nosy: davin, jcrotts, pitrou
title: Adding Timer to multiprocessing
versions: Python 3.7
Added file: https://bugs.python.org/file47364/Timer.py
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce