ExPool v0.1.1 ExPool.State.Config

The configuration of the pool.

This module defines a ExPool.State.Config struct that keeps the configuration given by the user.

Fields

  • size - number of workers of the pool

Summary

Functions

Creates a new Config from the given keyword configuration

Types

size :: non_neg_integer
t :: %ExPool.State.Config{size: size}

Functions

new(config)

Specs

new(config :: [Keyword]) :: t

Creates a new Config from the given keyword configuration.

Configuration options

  • :size - (Optional) size of the pool (default 5)