Invalidates a CFMessagePort object, stopping it from receiving or sending any more messages.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The message port to invalidate.
Invalidating a message port prevents the port from ever sending or receiving any more messages; the message port is not deallocated, though. If the port has not already been invalidated, the port’s invalidation callback function is invoked, if one has been set with
info information for
ms is also released, if a release callback was specified in the port’s context structure. Finally, if a run loop source was created for
ms, the run loop source is also invalidated.