-
Notifications
You must be signed in to change notification settings - Fork 42
Open
status-im/nim-chronos
#621Description
Consider this code sample (from the chronos examples):
import chronos/apps/http/httpclient
proc retrievePage*(uri: string): Future[string] {.async.} =
let httpSession = HttpSessionRef.new()
try:
let resp = await httpSession.fetch(parseUri(uri))
bytesToString(resp.data)
finally:
await noCancel(httpSession.closeWait())
echo waitFor retrievePage(
"https://raw.githubusercontent.com/status-im/nim-chronos/master/README.md"
)Inlay type hint for retrievePage is shown before the proc declaration:
- VSCode:
- Helix:
- The the hint is shown, it should be shown after the declaration.
- in this case, it shouldn't be shown at all: the return type is already specified for this proc.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels