BidirectionalChannel<T>

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.builtin

Implements

 

constructor

 

constructor(aQueueSize: Int32)

 

BidirectionalChannel<T>(Int32 aQueueSize)

 

init(_ aQueueSize: Int32)

Parameters:

  • aQueueSize:

Capacity  virtual

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Capacity Int32

Close

 

method Close

 

void Close()

 

func Close()

 

func Close()

GetSequence

 

method GetSequence: IEnumerable<T>

 

IEnumerable<T> GetSequence()

 

func GetSequence() -> IEnumerable<T>

 

func GetSequence() IEnumerable<T>

Receive

 

// .NET, Island, macOS
method Receive: tuple of (T, Boolean)
// .NET Standard 2.0
method Receive: ValueTuple<T, Boolean>

 

// .NET, Island, macOS
(T, Boolean) Receive()
// .NET Standard 2.0
ValueTuple<T, Boolean> Receive()

 

// .NET, Island, macOS
func Receive() -> (T, Boolean)
// .NET Standard 2.0
func Receive() -> ValueTuple<T, Boolean>

 

// .NET, Island, macOS
func Receive() (T, Boolean)
// .NET Standard 2.0
func Receive() ValueTuple<T, Boolean>

Send

 

method Send(aVal: T)

 

void Send(T aVal)

 

func Send(_ aVal: T)

 

func Send(aVal T)

Parameters:

  • aVal:

TryReceive

 

method TryReceive: IWaitReceiveMessage<T>

 

IWaitReceiveMessage<T> TryReceive()

 

func TryReceive() -> IWaitReceiveMessage<T>

 

func TryReceive() IWaitReceiveMessage<T>

TrySend

 

method TrySend(aVal: T): IWaitSendMessage

 

IWaitSendMessage TrySend(T aVal)

 

func TrySend(_ aVal: T) -> IWaitSendMessage

 

func TrySend(aVal T) IWaitSendMessage

Parameters:

  • aVal:

Zero

 

class property Zero: BidirectionalChannel<T> read write;

 

class BidirectionalChannel<T> Zero { get; set; }

 

static var Zero: BidirectionalChannel<T> { get{} set{} }

 

Capacity  virtual

 

property Capacity: Int32 read;

 

Int32 Capacity { get; }

 

var Capacity: Int32 { get{} }

 

Capacity Int32

Zero

 

class property Zero: BidirectionalChannel<T> read write;

 

class BidirectionalChannel<T> Zero { get; set; }

 

static var Zero: BidirectionalChannel<T> { get{} set{} }

 

constructor

 

constructor(aQueueSize: Int32)

 

BidirectionalChannel<T>(Int32 aQueueSize)

 

init(_ aQueueSize: Int32)

Parameters:

  • aQueueSize:

Close

 

method Close

 

void Close()

 

func Close()

 

func Close()

GetSequence

 

method GetSequence: IEnumerable<T>

 

IEnumerable<T> GetSequence()

 

func GetSequence() -> IEnumerable<T>

 

func GetSequence() IEnumerable<T>

Receive

 

// .NET, Island, macOS
method Receive: tuple of (T, Boolean)
// .NET Standard 2.0
method Receive: ValueTuple<T, Boolean>

 

// .NET, Island, macOS
(T, Boolean) Receive()
// .NET Standard 2.0
ValueTuple<T, Boolean> Receive()

 

// .NET, Island, macOS
func Receive() -> (T, Boolean)
// .NET Standard 2.0
func Receive() -> ValueTuple<T, Boolean>

 

// .NET, Island, macOS
func Receive() (T, Boolean)
// .NET Standard 2.0
func Receive() ValueTuple<T, Boolean>

Send

 

method Send(aVal: T)

 

void Send(T aVal)

 

func Send(_ aVal: T)

 

func Send(aVal T)

Parameters:

  • aVal:

TryReceive

 

method TryReceive: IWaitReceiveMessage<T>

 

IWaitReceiveMessage<T> TryReceive()

 

func TryReceive() -> IWaitReceiveMessage<T>

 

func TryReceive() IWaitReceiveMessage<T>

TrySend

 

method TrySend(aVal: T): IWaitSendMessage

 

IWaitSendMessage TrySend(T aVal)

 

func TrySend(_ aVal: T) -> IWaitSendMessage

 

func TrySend(aVal T) IWaitSendMessage

Parameters:

  • aVal: