Search code examples
iosswiftreactive-cocoareactive-cocoa-3

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.


Solution

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