@Test public void testAddOperations_waitUntilFinished() { RunnableHolder runnables = new RunnableHolder(250); runnables.addOperationsAndWait(fixture, true); assertEquals(0, fixture.operationCount().intValue()); runnables.checkResults(); runnables = new RunnableHolder(250); runnables.addOperationsAndWait(fixture, false); fixture.waitUntilAllOperationsAreFinished(); assertEquals(0, fixture.operationCount().intValue()); runnables.checkResults(); }
public abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait);
NSOperationQueue extends NSObject { public abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait); }
NSOperationQueue extends NSObject { public abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait);  }
NSOperationQueue extends NSObject { public abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait);  abstract NSOperationQueue init(); abstract void addOperation(NSOperation operation); abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait); abstract void cancelAllOperations(); abstract boolean isSuspended(); abstract NSInteger maxConcurrentOperationCount(); abstract String name(); abstract NSUInteger operationCount(); abstract NSArray operations(); abstract void setMaxConcurrentOperationCount(NSInteger count); abstract void setName(String name); abstract void setSuspended(boolean suspend); abstract void waitUntilAllOperationsAreFinished(); }
NSOperationQueue extends NSObject { public abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait);  abstract NSOperationQueue init(); abstract void addOperation(NSOperation operation); abstract void addOperations_waitUntilFinished(NSArray ops, boolean wait); abstract void cancelAllOperations(); abstract boolean isSuspended(); abstract NSInteger maxConcurrentOperationCount(); abstract String name(); abstract NSUInteger operationCount(); abstract NSArray operations(); abstract void setMaxConcurrentOperationCount(NSInteger count); abstract void setName(String name); abstract void setSuspended(boolean suspend); abstract void waitUntilAllOperationsAreFinished(); static final _Class CLASS; static final int NSOperationQueueDefaultMaxConcurrentOperationCount; }