Tries to connect to the printer until the condition is met.
Printer
Printer instance defined by calling new Printer(...)
.
- (status: PrinterStatus) => boolean
Predicate function that will be called with printer status. If returns true
promise will be resolved and next steps will be executed.
Promise<void>