Skip to content

Allow usage in an OTP supervision tree #59

@JonasGruenwald

Description

@JonasGruenwald

Currently, pog stores the PID of the pgo connection pool gen_server in an opaque type, so it's not possible to add pgo to an OTP supervision tree, and the gen_server runs unsupervised.

It would be nice if there was a pog.supervised function for usage with gleam_otp@1.

I'm not entirely sure about the design for such a function, specifically how it would allow one to still use the pog.Connection in other children of the supervisor – would appreciate some thoughts / input :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions