-
-
Notifications
You must be signed in to change notification settings - Fork 447
Closed
Description
As I understand this piece of code should call the Dispose method but it doesn't. Am I doing something wrong?
class Test(ILogger logger) : IDisposable
{
public void Dispose()
{
logger.LogInformation("Disposing Test");
}
}
var workflow = bracketIO(
from d in use(IO.lift(() => new Test(logger)))
select d
);
var result = await workflow.RunSafeAsync());It doesn't call dispose neither with success or with fail.
I tested this with .net 8 v5.0.0-beta-55 and .net 10 v5.0.0-beta-61
Metadata
Metadata
Assignees
Labels
No labels