diff --git a/Sources/Subjects.swift b/Sources/Subjects.swift index 3f03708..44173aa 100644 --- a/Sources/Subjects.swift +++ b/Sources/Subjects.swift @@ -52,6 +52,14 @@ extension SubjectProtocol { } } +extension SubjectProtocol where Element == Void { + + /// Convenience method to send `.next` event. + public func send() { + send(()) + } +} + /// A type that is both a signal and an observer. open class Subject: SubjectProtocol {