supabase-community / postgrest-csharp

A C# Client library for Postgrest
https://supabase-community.github.io/postgrest-csharp/api/Postgrest.html
MIT License
114 stars 22 forks source link

Add overload with CancellationToken parameter #46

Closed devpikachu closed 1 year ago

devpikachu commented 1 year ago

Hello!

Currently the Table object doesn't support CancellationTokens when making requests.

This should be an easy enhancement, probably added to this line.

This is particularly useful when the library is embedded in an API or WebServer, where requests might get cancelled prematurely. Enabling support for CancellationTokens can save resources.