TaskIt is a library that ease Process usage in Pharo. It provides abstractions to execute and synchronize concurrent tasks, and several pre-built mechanisms that are useful for many application developers.
MIT License
43
stars
24
forks
source link
TKTService: duplicated iteration after immediate stop+start #76
Start a service that prints the hash of the proocess and a timestamp in Transcript, every second:
service := TKTParameterizableService new.
service name: UUID new asString.
service stepDelay: 1 second.
service step: [
Processor activeProcess identityHash trace.
Time now traceCr ].
service start.
You can see that, effectively, it's printed once per second. Then, do this:
service stop; start.
Now you can see it's printed twice per second.
Note: It doesn't happen with a small wait in midst:
Steps to reproduce:
Start a service that prints the hash of the proocess and a timestamp in Transcript, every second:
You can see that, effectively, it's printed once per second. Then, do this:
Now you can see it's printed twice per second.
Note: It doesn't happen with a small wait in midst: