Swift: Call closure complete method in a different function
<p>I'd like to use a method that return a result asynchronously using the delegate pattern within a closure.</p>

<p>Is it possible to reference the complete block within another function within the same class?</p>

<pre><code>class A {

    func performASyncTask(input:String, complete:(result:String) -&gt; Void) {

        let obj = Loader()
        obj.delegate = self
        obj.start()
        // Loader() returns loaderCompleteWithResult(result:String) when completed
    }

    func loaderCompleteWithResult(result:String){

        // Call complete function in performASyncTask .e.g

        complete(result); // Calls the complete function in performASyncTask
    }
}
</code></pre>