Contents

DispatchSourceUserDataReplace

A dispatch source that replaces any pending data with the new value you provide.

Declaration

protocol DispatchSourceUserDataReplace : DispatchSourceProtocol, Sendable

Overview

You do not adopt this protocol in your objects. Instead, use the makeUserDataReplaceSource(queue:) method to create an object that adopts this protocol.

To replace the pending data in the dispatch source, call the replace(data:) method.

Topics

Getting the Event Data

See Also

Creating a Custom Source