puniverse / comsat

Fibers and actors for web development
docs.paralleluniverse.co/comsat
Other
598 stars 103 forks source link

Use suspendable synchronization in kafka test #43

Closed Tim-Brooks closed 9 years ago

Tim-Brooks commented 9 years ago

After looking more into Quasar, I remembered that it was not best practice to block in a Fiber. I was doing that when I used the java.u.c.CountDownLatch in some of the kafka producer tests.

It obviously was not a big deal since it was just a test. But it was straightforward to convert the tests to use the adapted suspendable phaser.

circlespainter commented 9 years ago

Thanks!