We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorry if this is obvious but I'm new to Swift.
I'd like fire a Signal without passing any argument.
I've resorted to using Signal<Int?>() and .fire(nil) but is there more elegant way of handling this?
Signal<Int?>()
.fire(nil)
The text was updated successfully, but these errors were encountered:
You can do:
let signal = Signal<Void>() signal.fire(())
Sorry, something went wrong.
Is there no way to simply do signal.fire() ?
signal.fire()
Unfortunately no. In Swift 4 you cannot omit the parameter even when calling a function that takes a void argument.
No branches or pull requests
Sorry if this is obvious but I'm new to Swift.
I'd like fire a Signal without passing any argument.
I've resorted to using
Signal<Int?>()
and.fire(nil)
but is there more elegant way of handling this?The text was updated successfully, but these errors were encountered: