]> Cypherpunks repositories - gostls13.git/commit
syscall: use asynchronous operations on js/wasm
authorRichard Musiol <mail@richard-musiol.de>
Tue, 25 Sep 2018 11:45:08 +0000 (13:45 +0200)
committerRichard Musiol <neelance@gmail.com>
Thu, 4 Oct 2018 00:23:03 +0000 (00:23 +0000)
commit0e4c013b6743507ebce2c08991cf1e3ab49cf7ac
tree79ff33a4d3bd9334bcff29b78175f92c805eebea
parent1961d8d72a53e780effa18bfa8dbe4e4282df0b2
syscall: use asynchronous operations on js/wasm

This commit makes syscall on js/wasm use the asynchronous variants
of functions in Node.js' fs module. This enables concurrency
and allows the API of the fs module to be implemented with an
alternative backend that only supports asynchronous operations.

Updates #26051.

Change-Id: Ibe1dcc988469fc11c3b8d8d49de439c12ddaafce
Reviewed-on: https://go-review.googlesource.com/c/137236
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/fs_js.go