-
Notifications
You must be signed in to change notification settings - Fork 1
system.pipe
load system.pipe
This module provides the System.Pipe class which provides a one-way awaitable communication mechanism.
This class provides an awaitable pipe communication mechanism that trigger an event when data become available on the read part.
This type is not copyable
| Modifiers | Member | Description |
|---|---|---|
const |
delete | Cleans up the pipe instance. |
const |
getHandle | Returns the handle used by System.Pipe.System.Poller. |
const |
getReadHandle | Returns a handle useable by System.Pipe.System.Poller to wait for data on the... |
const |
getWriteHandle | Returns a handle useable by System.Pipe.System.Poller to wait for data on the... |
const |
new | Creates a new pipe. The created pipe is empty. If no pipe can be created, none... |
const |
read | Returns the data contained in the read end of the pipe. The pipe's data is co... |
const |
readSome | Returns at most count bytes of data contained in the read end of the pipe. Th... |
const |
reset | Reset the internal event state |
const |
wait | Waits until data is available on the read end of the pipe. If timeout is give... |
const |
write | Writes the data on the write end of the pipe. |
| Modifiers | Member | Description |
|---|---|---|
const |
clone | Disable object copy. |
final |
eventHandleRead | Internal read handle. |
final |
eventHandleWrite | Internal write handle. |
@ const
|
g_lib | Global library handle. |
none
Disable object copy.
def (self)
Cleans up the pipe instance.
none
Internal read handle.
none
Internal write handle.
lib ('libmint-system')
Global library handle.
def (const self)
Returns the handle used by System.Poller.
def (const self)
Returns a handle useable by System.Poller to wait for data on the read end of the pipe.
def (const self)
Returns a handle useable by System.Poller to wait for data on the write end of the pipe.
def (self)
Creates a new pipe. The created pipe is empty.
If no pipe can be created, none is returned.
def (self)
Returns the data contained in the read end of the pipe.
The pipe's data is contained in an instance of Serializer.DataStream.
def (self, count)
Returns at most count bytes of data contained in the read end of the pipe.
The pipe's data is contained in an instance of Serializer.DataStream.
def (self)
Reset the internal event state
def (self, timeout = none)
Waits until data is available on the read end of the pipe. If
timeout is given, the wait stop after timeout milliseconds if
the pipe still have no data to read.
Returns true if data is available on the read end of the pipe;
otherwise returns false if the wait timed out.
After a call to this method, the event is reset.
def (self, data)
Writes the data on the write end of the pipe.
- Introduction
- Variables
-
Built-in-types
- Built-in-types#none
- Built-in-types#null
- Built-in-types#boolean
- Built-in-types#number
- Built-in-types#string
- Built-in-types#regex
- Built-in-types#array
- Built-in-types#hash
- Built-in-types#iterator
- Built-in-types#async_iterator
- Built-in-types#package
- Built-in-types#function
- Built-in-types#coroutine
- Built-in-types#library
- Built-in-types#libobject
- Arithmetic-operations
- Type-casting
- Control-structures
- Function-definition
- User-defined-types
- Work-with-modules