E&S CVS Commit: PEAK - Made tasks into event sources, allowing them to be pipelined. Made tasks

pje at eby-sarna.com pje at eby-sarna.com
Fri Feb 6 22:31:00 EST 2004


Module Name:	PEAK
Committed By:	pje
Date:		Sat Feb  7 03:31:04 UTC 2004

Modified Files:
	PEAK/src/peak/events: event_threads.py interfaces.py
	PEAK/src/peak/events/tests: test_events.py

Log Message:
Made tasks into event sources, allowing them to be pipelined.  Made tasks
also pass back values from nested generators into calling generators
without having to exit the nested generator, and automatically pass back
a 'NOT_GIVEN' sentinel if the nested generator *does* expire.  Also made
procedures adaptable to ITask/IEventSource, so you don't necessarily need
to make a generator a 'taskFactory' in order to create a task from it.
And, since tasks can now be event sources, they can be yielded within other
tasks, making it easy to mix and match task factories and simple
generators.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/events/event_threads.py.diff?r1=1.9&r2=1.10
http://cvs.eby-sarna.com/PEAK/src/peak/events/interfaces.py.diff?r1=1.14&r2=1.15
http://cvs.eby-sarna.com/PEAK/src/peak/events/tests/test_events.py.diff?r1=1.12&r2=1.13

To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/events/event_threads.py
cvs rdiff -r1.14 -r1.15 PEAK/src/peak/events/interfaces.py
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/events/tests/test_events.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list