ryudice
ryudice

Reputation: 37366

Create signal that doesn't return a value

How can you create a signal that doesn't return any value? I just want to know when the signal has completed.

I tried using Signal<AnyObject?, NSError> but I get a lot of type inference errors.

Upvotes: 0

Views: 64

Answers (1)

jtbandes
jtbandes

Reputation: 118681

You should be able to simply use Void as the type. There is only one possible value: ().

Upvotes: 1

Related Questions