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

seq is not nil anymore #21

Merged
merged 1 commit into from
May 15, 2021
Merged

seq is not nil anymore #21

merged 1 commit into from
May 15, 2021

Conversation

ringabout
Copy link
Member

No description provided.

@@ -778,8 +777,7 @@ proc lLPush*(r: Redis | AsyncRedis, key: string, values: seq[string], create: bo
result = await r.readInteger()

proc lRange*(r: Redis | AsyncRedis, key: string, start, stop: int): Future[RedisList] {.multisync.} =
## Get a range of elements from a list. Returns `nil` when `key`
## doesn't exist.
Copy link
Member

Choose a reason for hiding this comment

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

A Future can still be nil, no?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, but if async gets a nil future it will raise IIRC

@Araq Araq merged commit 947e187 into nim-lang:master May 15, 2021
@ringabout ringabout deleted the patch-3 branch May 16, 2021 02:17
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.

3 participants