Contents

perform(inModes:block:)

Schedules a block that the run loop invokes when it’s running in any of the specified modes.

Declaration

func perform(inModes modes: [RunLoop.Mode], block: @escaping  @Sendable () -> Void)

Parameters

  • modes:

    An array of modes in which the run loop invokes the block.

  • block:

    The block that the run loop invokes.

See Also

Scheduling and Canceling Tasks