id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,distribution,status_field
3800,"In ""My Settings"" -> ""ModemConfiguration"", convert the procedure to process the results of ""connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)"" from pseudo-asynchronous to asynchronous.",ajay_garg,erikos,"In the method ""get_modem_settings()"", we call ""connection.get_secrets('gsm', _secrets_cb, _secrets_err_cb)"". This is an asynchronous call.

As of now, we busy wait, till the specified ""result"" callback is called (which in this case  happens to be ""def _secrets_cb(secrets)"". After this is called, we return the modem-settings.


Instead of busy waiting, pass a callabck from the callee function. Thereafter, when ""def _secrets_cb(secrets)"" is hit, execute this  callback function, passing the modem-settings.",defect,new,Unspecified by Maintainer,Unspecified by Release Team,sugar,Git as of bugdate,Unspecified,,,quozl ajay_garg,Unspecified,Unconfirmed
