ClientPool

trait ClientPool[F[_], SelfBoundPackets <: Tuple, PeerBoundPackets <: Tuple, WorldView]
Companion
object
class Object
trait Matchable
class Any

Type members

Types

final
type Client = SightedClient[F, SelfBoundPackets, PeerBoundPackets, WorldView]

Value members

Abstract fields

The account pool from which client usernames are atomically generated.

The account pool from which client usernames are atomically generated.

val freshClient: Resource[F, Client]

Resource of a client that is guaranteed to be in a state right after login has completed.

Resource of a client that is guaranteed to be in a state right after login has completed.

This resource is normally much more costly compared to the initialization of recycledClient. If it is not too inconvenient, consider using recycledClient.

This resource may block (semantically) on initialisation if the pool is full.

val recycledClient: Resource[F, Client]

Resource of a client that may have logged in beforehand. If no such client is available, new client will be created and will be connected to the server.

Resource of a client that may have logged in beforehand. If no such client is available, new client will be created and will be connected to the server.

This resource may block (semantically) on initialisation if the pool is full.