Dex.Channel – libdex-1 Reference Manual
Packages
libdex-1
Dex
Channel
Channel
can_receive
can_send
close_receive
close_send
receive
receive_all
send
Channel
Object Hierarchy:
Description:
[
CCode
( type_id =
"dex_channel_get_type ()"
) ]
public
sealed
class
Channel
:
Object
Namespace:
Dex
Package:
libdex-1
Content:
Creation methods:
public
Channel
(
uint
capacity)
Creates a new [class@Dex.
Methods:
public
bool
can_receive
()
public
bool
can_send
()
public
void
close_receive
()
public
void
close_send
()
public
Future
receive
()
Receives the next item from the channel.
public
Future
receive_all
()
Will attempt to receive all items in the channel as a [class@Dex.
public
Future
send
(
owned
Future
future)
Queues
future
into the channel.
Inherited Members:
All known members inherited from class Dex.Object
@ref
unref