Fetches data from a pipe. Accepts an optional timeout value in milliseconds. Returns null if the timeout value is reached before any data is put into the pipe. If there is data already waiting in the pipe when this tag is called then the first item from the pipe will be returned immediately.
Data can be sent into a pipe using the [Thread_Pipe->Set] tag. That value will remain in the pipe until another thread calls [Thread_Pipe->Get]. If a thread calls [Thread_Pipe->Get] and there is no data in the pipe then the thread can wait until an optional timeout value is reached.
[Global: 'myPipe' = (Thread_Pipe)]
[Variable: 'Result' = $myPipe->(Get: 1000)]
[If: $Result != Null]
...
[/If]
[$myPipe->(Set: 'Value')]
See the Lasso 8 Language Guide for examples of how to use this tag. This tag is documented on page 105.
Tag Link | [Thread_Pipe->Get] | Category | Thread |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | Any | Security | Tag |
Implementation | LDML | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft