Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Add try catch block to handle exception when finishing ContinueWith #312

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

sheepbeo
Copy link
Contributor

Fix for #311

@neuecc
Copy link
Owner

neuecc commented Jul 16, 2018

thanks!

}
finally
{
Dispose();
Copy link
Contributor

@Js-2nd Js-2nd Jul 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dispose() is always called immediately after serialDisposable.Disposable = v.Subscribe(observer);
This will cancel the subscription if it's not finished immediately.
I think the finally block should be deleted.
@neuecc @sheepbeo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If exception is thrown right before or right at serialDisposable.Disposable = v.Subscribe(observer);
No Dispose() will get called..

@sheepbeo sheepbeo deleted the fix/ContinueWithExceptionHandling branch October 4, 2018 06:53
EarMaster pushed a commit to EarMaster/UniRx that referenced this pull request Jun 12, 2019
…Handling

Add try catch block to handle exception when finishing ContinueWith
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants