Skip to content

Commit

Permalink
unsafeRunAndForget => unsafeRunSync for enqueueByteBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
varygin committed Jul 12, 2022
1 parent f85910c commit 0b01a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/eu/monniot/process/Process.scala
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ object Process {
// Ensure we consume the entire buffer in case it's not used.
buffer.position(buffer.limit)

dispatcher.unsafeRunAndForget(q.offer(Some(bv)))
dispatcher.unsafeRunSync(q.offer(Some(bv)))
}

override def onStdout(buffer: ByteBuffer, closed: Boolean): Unit =
Expand Down

0 comments on commit 0b01a80

Please sign in to comment.