<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Timer/TimerPublisher/init(interval:tolerance:runLoop:mode:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So7NSTimerC10FoundationE14TimerPublisherC8interval9tolerance7runLoop4mode7optionsAESd_SdSgSo05NSRunH0CSo0kH4ModeaAmCE16SchedulerOptionsVSgtcfc"
  },
  "title" : "init(interval:tolerance:runLoop:mode:options:)"
}
-->

# init(interval:tolerance:runLoop:mode:options:)

Creates a publisher that repeatedly emits the current date on the given interval.

```
init(interval: TimeInterval, tolerance: TimeInterval? = nil, runLoop: RunLoop, mode: RunLoop.Mode, options: RunLoop.SchedulerOptions? = nil)
```

## Parameters

`interval`

The interval on which to publish events.

`tolerance`

The allowed timing variance when emitting events. Defaults to `nil`, which allows any variance.

`runLoop`

The run loop on which the timer runs.

`mode`

The run loop mode in which to run the timer.

`options`

Scheduler options passed to the timer. Defaults to `nil`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)