This commit is contained in:
10
docs/snippets/csharp/config/with_timeout.cs
Normal file
10
docs/snippets/csharp/config/with_timeout.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Kreuzberg;
|
||||
|
||||
var config = new ExtractionConfig
|
||||
{
|
||||
UseCache = true,
|
||||
EnableQualityProcessing = true
|
||||
};
|
||||
|
||||
var cts = new System.Threading.CancellationTokenSource(TimeSpan.FromSeconds(30));
|
||||
var result = await KreuzbergLib.ExtractFileAsync("document.pdf", config, cts.Token);
|
||||
Reference in New Issue
Block a user