New submission from Jay Crotts <crotts....@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32495>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to