View Source Tulle.HTTP1.Pool (tulle v0.7.0)

Pool for holding Tulle.HTTP1.Client processes.

In current implementation, at least one connection (one process) is kept open. Idle processes are shutdown with a half-life of 60 seconds.

Summary

Functions

Returns a checked-out Tulle.HTTP1.Client back to the pool.

Check-out a Tulle.HTTP1.Client process from the pool, spawning if necessary.

Returns a specification to start this module under a supervisor.

Types

Functions

@spec check_in(pool(), worker()) :: :ok

Returns a checked-out Tulle.HTTP1.Client back to the pool.

Link to this function

check_out!(pool, timeout \\ 5000)

View Source
@spec check_out!(pool(), timeout()) :: worker()

Check-out a Tulle.HTTP1.Client process from the pool, spawning if necessary.

Returns a specification to start this module under a supervisor.

See Supervisor.