Skip to content

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