Function Device.waitIdle

Wait that device finishes all operations in progress

abstract void waitIdle();