Add a new function that allows the caller to cancel a scan, optionally calling the "userCancelled" delegate function. Callers can use this to set timeouts and stop scanning once the timeout is reached. This PR also includes an example of how you can set a timeout in the example app.
Add a new function that allows the caller to cancel a scan, optionally calling the "userCancelled" delegate function. Callers can use this to set timeouts and stop scanning once the timeout is reached. This PR also includes an example of how you can set a timeout in the example app.