Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactive & Simple Transaction lifetimes. #640

Conversation

thelonelyvulpes
Copy link
Contributor

Update Rx and Simple driver Tx lifetime changes.

Copy link
Contributor

@AndyHeap-NeoTech AndyHeap-NeoTech left a comment

Choose a reason for hiding this comment

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

Just one question

@@ -122,6 +122,26 @@ public IObservable<T> WriteTransaction<T>(Func<IRxTransaction, IObservable<T>> w
return RunTransaction(AccessMode.Write, work, action);
}

public IObservable<T> ExecuteRead<T>(Func<IRxRunnable, IObservable<T>> work)
{
return ReadTransaction(work, null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just wondering if leaving the internal method name(s) ReadTransaction and WriteTransaction as is makes sense, or does it introduces confusion with the deprecated methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair comment, I will avoid using the deprecated methods in the new methods.

@thelonelyvulpes thelonelyvulpes merged commit 5e54252 into neo4j:5.0 Sep 8, 2022
@thelonelyvulpes thelonelyvulpes deleted the fix/deprecate-rx-simple-read-write-transactions branch September 8, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants