Create signal that doesn't return a value

74 Views Asked by At

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.

1

There are 1 best solutions below

3
On BEST ANSWER

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