You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ospath/os thing is only the first step. We haven't updated the library for quite a while, and we will need a lot of changes to make it compatible with Nim 0.20 and later. I've done the easy parts here. This breaks the tests for Nim 0.19 (some issue with toSeq), but that can be fixed separately using when - or we can just drop 0.19 support.
One major issue I've found is that callback= in asyncfutures now requires a {.gcsafe.} function, which means that any combinators dealing with Future must only accept gcsafeprocs as parameters. I've fixed the types for now, but that still means that the combinators are incompatible with sugar lambdas. ☹️
Also, spawn now doesn't accept closure procs. We will need to change concurrent accordingly, but I've ran out of steam by this point. @vegansk, could you please continue this work? You are more familiar with what's going on in that file.
see {.gcsafe.}: to force gcsafe when you know it's safe to do so
This works, and this is what I did in my branch, but it's not compatible with the -> and => syntax from sugar, which hurts usability. Still, there's not much we can do about this, since it's enforced by Future itself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refs nim-lang/Nim#14887
closes #20