liftbridge-io / go-liftbridge

Go client for Liftbridge. https://github.com/liftbridge-io/liftbridge
Apache License 2.0
66 stars 18 forks source link

Add a ConnectCtx function to initiate a connection using a context #105

Closed Jmgr closed 3 years ago

Jmgr commented 3 years ago

This adds a new ConnectCtx function that allows connecting using a context, so that the connection can be cancelled using a deadline other than the default gRPC one. The connection is only blocking if a context with a deadline has been provided.

This PR fixes https://github.com/liftbridge-io/go-liftbridge/issues/98.