genserver/types
Types
Opaque type wrapping an Agent PID for type safety
pub type Agent {
Agent(pid: process.Pid)
}
Constructors
-
Agent(pid: process.Pid)
Opaque type wrapping a GenServer PID for type safety
pub type GenServer {
GenServer(pid: process.Pid)
}
Constructors
-
GenServer(pid: process.Pid)
Errors that can occur in GenServer operations
pub type GenServerError {
StartError(reason: String)
CallTimeout
CallError(reason: String)
CastError(reason: String)
InvalidModule(module: String)
}
Constructors
-
StartError(reason: String)
-
CallTimeout
-
CallError(reason: String)
-
CastError(reason: String)
-
InvalidModule(module: String)
Options for starting GenServers
pub type StartOptions {
StartOptions(
name: option.Option(String),
timeout: option.Option(Int),
debug: List(String),
)
}
Constructors
-
StartOptions( name: option.Option(String), timeout: option.Option(Int), debug: List(String), )