I am trying to use the asyncronous methods of roUrlTransfer and have couple of questions i could not find in RTFM the answer to:
- Are the Async methods re-entrant? E.g. can i call AsyncGetToString() multiple times on the very same object and rely it will not bomb - that is >1 async calls from the same object can run in the background and will send events. Or are roUrlTransfer objects strictly one-time/single-use/disposable.
- Is it okay not to hold a reference to a roUrlTransfer object after the Async method was called? Or should i hold on for dear life to the object, even if i am not going to use it - lest it will explode in my face.
As an explanation of use, i intend to start multiple transfers in parallel - and if (1) Async calls are re-entrant, i may just use a single roUrlTransfer object and sort out the results based on roUrlEvent only. If that is not the case, then i'll use 1 roUrlTransfer per 1 async call and then (2) becomes relevant - do i need to keep reference to these objects (like stuff them in array for no reason of my own but just to keep ref.count > 0) - or can i invalidate my reference (like say using the same variable in a loop, re-assigning it with createObject() on each iteration) and trust Roku will still finish the async calls?
PS. bonus question -
how many roUrlTransfer requests maximum before player meets untimely demise?