How do you write a completion handler in Swift 3?
<p>I was wondering how to make a completion handler for a function I'm creating in Swift 3.
This is how I did my function right before I updated to Swift 3:</p>

<pre><code>func Logout(completionHandler: (success: Bool) -&gt; ()) {
    backendless.userService.logout(
        { ( user : AnyObject!) -&gt; () in
            print("User logged out.")
            completionHandler(success: true)
        },
        error: { ( fault : Fault!) -&gt; () in
            print("Server reported an error: \(fault)")
            completionHandler(success: false)
    })}
</code></pre>

<p>But now I can't figure out the best approach that works right now.</p>