Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

One callback for multiple events #19

Open
ricardopereira opened this issue Jun 26, 2015 · 0 comments
Open

One callback for multiple events #19

ricardopereira opened this issue Jun 26, 2015 · 0 comments

Comments

@ricardopereira
Copy link
Owner

Something similar to:

socket.on([.ConnectError, .TransportError]) {
    switch $0 {
    case .Failure(let error):
        println(error)
    default:
        break
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant