Swift 3 :Closure use of non-escaping parameter may allow it to escape : <p>I have the following function where I have completion handler but I'm getting this error:</p>

<pre><code>Closure use of non-escaping parameter may allow it to escape
</code></pre>

<p>Here is my code:</p>

<pre><code>func makeRequestcompletion(completion:(_ response:Data, _ error:NSError)-&gt;Void)  {
    let urlString = URL(string: "http://someUrl.com")
    if let url = urlString {
        let task = URLSession.shared.dataTask(with: url, completionHandler: { (data, urlRequestResponse, error) in
            completion(data, error) // &lt;-- here is I'm getting the error
        })
    task.resume()
    }
}
</code></pre>

<p><a href="https://i.stack.imgur.com/tFPzj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tFPzj.png" alt="enter image description here"></a>
Any of you knows why I'm getting this error?</p>

<p>I'll really appreciate you help</p>
