Skip to content

[Idea] NoValue enum #389

@ikesyo

Description

@ikesyo

This is similar to NoError enum. With this one can write something like this:

let noValueProducer1 = SignalProducer<NoValue, NoError>.empty
let noValueProducer2 = SignalProducer<NoValue, FooError>(error: FooError())
let noValueProducer3 = SignalProducer<NoValue, FooError>(value: ...) // Cannot be called

typealias Completable<E> = SignalProducer<NoValue, E>

We may replace Signal/Producer<(), Error> with Signal/Producer<NoValue, Error>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions