-
Notifications
You must be signed in to change notification settings - Fork 534
Add new NullDataStore that stores nothing #948
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
Conversation
|
||
/// <summary> | ||
/// Asynchronously returns the stored value for the given key or <c>null</c> if not found. | ||
/// This implementation of <see cref="IDataStore"/> will always return <c>null</c>. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
{ | ||
} | ||
|
||
private Task<T> CompletedTask<T>() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
General aim LGTM though. |
PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, but otherwise fine.
return tcs.Task; | ||
} | ||
|
||
private static Task s_completedTask = CompletedTask<int>(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Vote for devnulldatastore rename otherwise awesome idea assuming we document this. |
No description provided.