longRunning () -> "Yippee!" () -> "Oh noes"
Ideally, you'd write it:
longRunning onSuccess, onError
longRunning (-> "Yippee!"), (-> "Oh noes")
longRunning (-> ### bunch of stuff happening for success ### ), (-> ### bunch of stuff happening for failures ### )
longRunning -> # bunch of stuff happening for success , -> # bunch of stuff happening for failures
Ideally, you'd write it:
Or, if you really wanted to use two inline functions instead of local variables: