dangerous release (possibly memory leak and deadlock)
This commit is contained in:
parent
a1cb6592eb
commit
741d34a5e0
10 changed files with 164 additions and 115 deletions
|
|
@ -21,9 +21,13 @@ public static class Utils
|
|||
await imageCreator.WriteToStream(stream, scale!.Value);
|
||||
}
|
||||
|
||||
public static async Task DangerousWriteToPipe(this GridSection section, PipeWriter pipeWriter, float? scale)
|
||||
public static async Task DangerousWriteToPipe(
|
||||
this GridSection section,
|
||||
PipeWriter pipeWriter,
|
||||
float? scale,
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
var imageCreator = new DangerousImageCreator(section);
|
||||
await imageCreator.WriteToPipe(pipeWriter, scale!.Value);
|
||||
await imageCreator.WriteToPipe(pipeWriter, scale!.Value, cancellationToken);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue