-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Are timeouts on request options specified in milliseconds or nanoseconds? #78
Comments
Yes, I think that was mistakenly introduced by a refactoring. The original intention was indeed milliseconds, as suggested by the name. This seems worth fixing in Preview 2, since otherwise it seems very likely to mislead folks. Given the two obvious choices:
I'd be inclined toward the former, but I think it's also a behavioral change (I'm guessing folks would've implemented milliseconds, given the name), as opposed to the latter which I expect is purely syntactic. |
Lets strip the If we are going to make a change to the RC, can we fix the future-trailers thing as well? |
This is a leftover artifact from recent refactorings but now that it's using a `duration` type which holds its value in nanoseconds the `-ms` suffix is no longer required. Closes WebAssembly#78
I put up a draft pr for the fix to wasmtime's implementation: bytecodealliance/wasmtime#7589 |
Currently methods on
request-options
all end in*-ms
which seems to imply that the argument has a unit of milliseconds. The type taken, however, is aduration
which specifies that it's in nanoseconds. My guess is that this is an artifact of refactoring that was forgotten, but what's the intention here?The text was updated successfully, but these errors were encountered: