You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to async run AsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer, ? super A> handler), but I'm having trouble finding the right Kyo Async API that offers a callback and wraps a computation that will use the callback for success/fail paths.
cats-effects has this F.async[Int] { cb => ch.read( buffer, null, new IntCompletionHandler(cb) )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi guys,
I'm trying to async run AsynchronousSocketChannel.read(ByteBuffer dst, A attachment, CompletionHandler<Integer, ? super A> handler), but I'm having trouble finding the right Kyo Async API that offers a callback and wraps a computation that will use the callback for success/fail paths.
cats-effects has this
F.async[Int] { cb => ch.read( buffer, null, new IntCompletionHandler(cb) )
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions