---
title: "init(upstream:dueTime:scheduler:options:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/publishers/debounce/init(upstream:duetime:scheduler:options:)"
---

# init(upstream:dueTime:scheduler:options:)

Creates a publisher that publishes elements only after a specified time interval elapses between events.

## Declaration

```swift
init(upstream: Upstream, dueTime: Context.SchedulerTimeType.Stride, scheduler: Context, options: Context.SchedulerOptions?)
```

## Parameters

- `upstream`: The publisher from which this publisher receives elements.
- `dueTime`: The amount of time the publisher should wait before publishing an element.
- `scheduler`: The scheduler on which this publisher delivers elements.
- `options`: Scheduler options that customize this publisher’s delivery of elements.
