If StreamIsReady Task_queue then
 ...
Else
 ...
;  
