Inherits from RACScheduler : NSObject
Declared in RACTestScheduler.h

Overview

This class can be used from multiple threads, but only one thread can step through the enqueued actions at a time. Other threads will wait while the scheduled blocks are being executed.

Tasks

  • – init

    Initializes a new test scheduler.

  • – step

    This method will block until the scheduled action has completed.

  • – step:

    ticks - The number of scheduled blocks to execute. If there aren’t this many blocks enqueued, all scheduled blocks are executed.

  • – stepAll

    This method will block until the scheduled actions have completed.

Instance Methods

init

- (instancetype)init
Discussion

Initializes a new test scheduler.

Declared In

RACTestScheduler.h

step

- (void)step
Discussion

This method will block until the scheduled action has completed.

Declared In

RACTestScheduler.h

step:

- (void)step:(NSUInteger)ticks
Discussion

ticks - The number of scheduled blocks to execute. If there aren’t this many blocks enqueued, all scheduled blocks are executed.

Declared In

RACTestScheduler.h

stepAll

- (void)stepAll
Discussion

This method will block until the scheduled actions have completed.

Declared In

RACTestScheduler.h