Skip to content

Sendgrid resources cannot be cleaned up elegantly #605

@steaks

Description

@steaks

This library claims resources primarily through

this.pool = Executors.newFixedThreadPool(THREAD_POOL_SIZE) //ExecutorService
this.client = new Client() //CloseableHttpClient

The library provides no mechanism for releasing these resources. Consumers of the api should be able to release the resources elegantly when they're finished using Sendgrid.

For reference, see the ExecutorService's documentation for shutting down https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ExecutorService.html and the Closeable interface's documentation for closing https://docs.oracle.com/javase/8/docs/api/java/io/Closeable.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions