Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 9

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
Highlighted
Level 8

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.
https://github.com/belltown/
0 Kudos