Skip to content

Commit 936fc0f

Browse files
committed
2 parents 5be608f + d799979 commit 936fc0f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,25 @@ console.log(await getName('developit'))
4848

4949
[🔄 **Run this example on JSFiddle**](https://jsfiddle.net/developit/mf9fbma5/)
5050

51+
5152
## Transferable ready
5253

53-
Greenlet will even accept and optimize [transferables](https://developer.mozilla.org/en-US/docs/Web/API/Transferable) as arguments to and from a greenlet worker functions.
54+
Greenlet will even accept and optimize [transferables](https://developer.mozilla.org/en-US/docs/Web/API/Transferable) as arguments to and from a greenlet worker function.
55+
56+
57+
## Browser support
58+
59+
Thankfully, Web Workers have been around for a while and [are broadly supported](https://caniuse.com/#feat=webworkers) by Chrome, Firefox, Safari, Edge, and Internet Explorer 10+.
60+
61+
If you still need to support older browsers, you can just check for the presence of `window.Worker`:
62+
63+
```js
64+
if (window.Worker) {
65+
...
66+
} else {
67+
...
68+
}
69+
```
5470

5571
## License & Credits
5672

0 commit comments

Comments
 (0)