Skip to content

Commit

Permalink
Document the new conditional fastTimeout export (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Dec 10, 2024
1 parent cf246b4 commit c0dafe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Alternatively, if you are directly using the library as a browser embed:

## Compatibility

While `fastTimeout` is based on `postMessage`, it automatically falls back to `setImmediate` in environments where that function is defined. Hence, you can transparently use it in Node.js as well.
While `fastTimeout` is based on `postMessage`, it automatically falls back to `setImmediate` in environments where that function is defined. Hence, you can transparently use it in Node.js as well. In environments where neither `postMessage` nor `setImmediate` is defined, it falls back to plain `setTimeout`; you get a performance degradation in that case, but at least your code will still work.

## Reference

Expand Down

0 comments on commit c0dafe9

Please sign in to comment.