1// Copyright 2013 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Fake network poller for wasm/js.
6// Should never be used, because wasm/js network connections do not honor "SetNonblock".
7
8// +build js,wasm
9
10package runtime
11
12func netpollinit() {
13}
14
15func netpollIsPollDescriptor(fd uintptr) bool {
16	return false
17}
18
19func netpollopen(fd uintptr, pd *pollDesc) int32 {
20	return 0
21}
22
23func netpollclose(fd uintptr) int32 {
24	return 0
25}
26
27func netpollarm(pd *pollDesc, mode int) {
28}
29
30func netpollBreak() {
31}
32
33func netpoll(delay int64) gList {
34	return gList{}
35}
36