Skip to content

Add pool refreshing events #95

@jackfirth

Description

@jackfirth

When a pool lease is disposed, a function could take the value and return a refresh event that does two things:

  • Perform any necessary "refreshing" cleanup logic on the value that must happen before it may be reused, such as closing open database transations on a database connection
  • Return a boolean as its synchronization result where a false result indicates that the value can't be reused, such as a connection that's been forcibly terminated

A single function of type (-> any/c (evt/c boolean?)) applied to the leased value can handle both use cases.

Obsoletes #70

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions