pulsar4s icon indicating copy to clipboard operation
pulsar4s copied to clipboard

Akka source creation function should return a future

Open gmethvin opened this issue 3 years ago • 2 comments

It should be possible to pass a () => Future[Consumer[T]] to create the Akka source, so we can easily use the async consumer creation API and avoid blocking the Akka thread pool.

gmethvin avatar May 19 '21 23:05 gmethvin

This could be related to https://github.com/CleverCloud/pulsar4s/issues/262, so a Future[Either[?]]?

KannarFr avatar Dec 16 '21 15:12 KannarFr

The main issue here is with being able to use the async API, since I don't want to block the Akka thread pool creating a consumer.

gmethvin avatar Dec 18 '21 11:12 gmethvin