---
title: "FSEventStreamInvalidate(_:)"
framework: Core Services
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.1+, macOS 10.5+]
path: coreservices/1446990-fseventstreaminvalidate
---

# FSEventStreamInvalidate(_:)

## Declaration

```swift
func FSEventStreamInvalidate(_ streamRef: FSEventStreamRef)
```

## Parameters

- `streamRef`: A valid stream.

## Discussion

Discussion Invalidates the stream, like CFRunLoopSourceInvalidate() does for a CFRunLoopSourceRef. It will be unscheduled from any runloops or dispatch queues upon which it had been scheduled. FSEventStreamInvalidate() can only be called on the stream after you have called FSEventStreamScheduleWithRunLoop() or FSEventStreamSetDispatchQueue().
