Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
matrixebiz
Roku Guru

Re: Brightscript Timeout settings _getUrlToString

Hi Belltown, is the 5 second wait a min fixed time?;
xmlString = _getPathToString (xmlPath, 5000)



if I put 30 (Seconds), will it wait until the 30 seconds is up if no response or if a response is received before the 30 seconds will stop waiting then move on? Thx
0 Kudos
belltown
Roku Guru

Re: Brightscript Timeout settings _getUrlToString

"matrixebiz" wrote:
Hi Belltown, is the 5 second wait a min fixed time?;
xmlString = _getPathToString (xmlPath, 5000)



if I put 30 (Seconds), will it wait until the 30 seconds is up if no response or if a response is received before the 30 seconds will stop waiting then move on? Thx

It's the maximum wait time when reading an external url (if the path is for a local package file, the timeout parameter does not apply). If a response is received before the timeout expires, the operation completes at that time, otherwise the operation will be cancelled when the timeout expires.
0 Kudos