class

Noir::DirListing::Pool

Inherits Reference < Object

Lists submitted directories on the walk context. Every submission gets exactly one listing, and a worker never blocks on a reply, so a caller that stops receiving (a walk that raised) cannot wedge the pool.

Constructors

new(workers : Int32 = Noir::WorkerThreads.count)
Source

Instance methods

close

Idempotent: safe to call from both the normal and the error path.

Source
submit(dir : String) : Channel(Listing)
Source