Join Slack
Powered by
Use `Unit`, it’s just like `void`, but it is also ...
# getting-started
m
miha-x64
03/10/2017, 2:54 PM
Use
Unit
, it’s just like
void
, but it is also a valid expression. Answering your question, just write
onFinishListener?.invoke()
to invoke it only if not null.
Open in Slack
Previous
Next