reef-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Weimer <>
Subject Re: ICompletedTask semantics
Date Fri, 08 Apr 2016 19:50:11 GMT
On 2016-04-08 11:40, Andrew Chung wrote:
> Examples include Dispose methods that modify states in external
> systems, e.g. releasing distributed lock.

Fair. However, I don't understand why `ITask` needs to be `Disposable` 
in the first place. `ITask` has only one method, and as part of its 
exit, it needs to release all resources. Failure to do so would be a 
task failure.

In other words, I don't see anyone writing something like `using(var t = 
new MyTask()){...}`.


View raw message