Package io.javago
package io.javago
Provides Java class implementing core Go concurrency features such as the
go
and select
keywords and
channels.
For Java implementations of Go's sync
package, use the io.javago.sync
package.-
ClassDescriptionThe
BufferedQueueChannel
class is an implementation of theChannel
interface, providing a Gochannel
backed by a Queue for passing messages between threads.Channel<T>TheChannel
interface defines the operations to create Go'schannel
in Java that can send and receive messages of a specified type.TheDelayedCase
class is used to create the timeout case found in Go'sselect
statement.TheGo
class implements Go'sgo
statement.InputChannel<T>TheInputChannel
interface defines the operations for a Gochannel
in Java that can receive messages of a specified type.TheInputChannelCase
class is used by theSelector
class to create a case that is run when a message is received from the case's channel.TheOutputChannel
interface defines the operations for a Gochannel
in Java that can send messages of a specified type.TheOutputChannelCase
class is used by theSelector
class to create a case that is run when a message is sent to the case's channel.TheSelector
class implements Go'sselect
statement.