haskell-grpc-native / http2-client

A native HTTP2 client in Haskell
BSD 3-Clause "New" or "Revised" License
43 stars 27 forks source link

Use withAsync to link all underlying asyncs. #35

Closed lucasdicioccio closed 7 years ago

lucasdicioccio commented 7 years ago

This API breaking change provides the cleanest way to avoid leaking threads at the expense of delimiting the Http2Client lifetime within a callback block.

This design addresses #6 by making sure all threads at least have a shared fate when an exception occurs.