pharo-contributions / taskit

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

Closed tinchodias closed 4 years ago

tinchodias commented 4 years ago

Steps to reproduce:

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:

service stop. 1 milliSecond wait. service start.
tinchodias commented 4 years ago

Pfff I had a network problems at home that made me create twice the same issue (#75)