Skip to content

Commit

Permalink
improvement: Show current compilation queue when debugging flag is on
Browse files Browse the repository at this point in the history
Seems I am having an issue from time to time, which I can't reproduce. The debug might help out here.
  • Loading branch information
tgodzik committed Jun 30, 2023
1 parent 4b9454a commit bc7845e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ final class BatchedFunction[A, B](
callback: () => Unit,
): Future[B] = {
val promise = Promise[B]()
scribe.debug(queue.toArray().mkString(","))
queue.add(Request(arguments, promise, callback))
runAcquire()
promise.future
Expand Down

0 comments on commit bc7845e

Please sign in to comment.