Daniel Weber
|
81ad48ec76
Use ContinueWithState in two other places to save an allocation.
|
7 лет назад |
Daniel C. Weber
|
0bf8cffdae
Merge pull request #766 from danielcweber/AvoidLeakingTaskContinuations
|
7 лет назад |
Daniel Weber
|
bdcdf8ad59
Cleanup.
|
7 лет назад |
Daniel Weber
|
26cbadf62c
Avoid continuation leaks in TaskObservableExtensions.ToObservable. This is a bit more involved. The continuation must not be registered before a subscription happens because it might leak on long lived tasks. So instead of registering a continuation on a task once and forwarding the results to an AsyncSubject, we construct an Observable that registers the continuation for each subscription. Memory performance might of course go down if a lot of subscriptions happen on a task, but it won't leak.
|
7 лет назад |
Daniel Weber
|
9c708d3b34
Fix in TaskObservableExtensions.Subscribe: According to https://github.com/dotnet/coreclr/blob/master/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs#L3611, the default-TaskScheduler is not TaskScheduler.Default but TaskScheduler.Current.
|
7 лет назад |
Daniel Weber
|
28f51f673b
Simplify ToObservableImpl, that also makes it provable that we never return null.
|
7 лет назад |
Daniel Weber
|
085e9e7c0b
Make ToObservableResult an extension method.
|
7 лет назад |
Daniel Weber
|
ad703e9360
Make EmitTaskResult an extension method.
|
7 лет назад |
Daniel Weber
|
2479b9a6ba
Rename ToObservableDone to EmitTaskResult because ToObservableDone is simply not what it's doing...
|
7 лет назад |
Daniel Weber
|
ca73625096
Inline ToObservableSlow, closures are not an issue anymore.
|
7 лет назад |
Daniel Weber
|
438cd71e4a
Internal shortcut for Task.ToObservable().Subscribe(...). This avoids the allocation of an AsyncSubject.
|
7 лет назад |
Daniel Weber
|
e6e0f95780
Save the allocation of a closure and allow delegate caching in ToObservableSlow.
|
7 лет назад |
Daniel Weber
|
331ad59db7
Remove code redundancies as suggested by ReSharper.
|
7 лет назад |
Daniel Weber
|
903a5027e0
Remove redundant field initializers.
|
7 лет назад |
Oren Novotny
|
03202e0418
Code clean up based on editorconfig
|
7 лет назад |
Daniel C. Weber
|
e0aec89bd4
Save some allocations in ToTaskObserver. (#643)
|
7 лет назад |
Bart De Smet
|
f74384b36f
Cleanup of TaskObservableExtensions.
|
8 лет назад |
Bart De Smet
|
adbb3d1102
Removing conditional compilation for TPL.
|
8 лет назад |
Oren Novotny
|
da3b5ed03e
move files to src\tests\facades
|
8 лет назад |