GREYOperationQueueIdlingResource

@interface GREYOperationQueueIdlingResource : NSObject <GREYIdlingResource>

Idling resource that monitors operation queues.

  • Creates an idling resource for monitoring @c queue for idleness. A queue is considered idle when it has no pending operations. A weak reference is held to @c queue. If @c queue is deallocated, then the idling resource will deregister itself from the UI thread executor.

    Declaration

    Objective-C

    + (instancetype)resourceWithNSOperationQueue:(NSOperationQueue *)queue
                                            name:(NSString *)name;

    Swift

    convenience init!(nsOperationQueue queue: Any!, name: Any!)

    Parameters

    queue

    The queue that will be tracked by the resource.

    name

    A descriptive name for the idling resource.

    Return Value

    Returns an idling resource for the specified NSOperationQueue.

  • @remark init is not an available initializer. Use the other initializers.

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init!()