Crate web_thread

source ·
Expand description

TODO:

  • Re-factor builder implementation.
  • Add MessageSend macro.
  • Add WorkletBuilder (or use Builder).
  • Wrap MessageChannel into something safe.
  • Consider passing message into Builder.
  • Add README.
  • Consider moving some APIs into web-thread-core/primitives.

Things to note:

  • Will fail on import when used with the no-modules target.
  • Blocking is not recommended, e.g. blocks events.
  • Audio worklets are very limited, e.g. should not do any allocation.
  • Spawning happens on the “main” thread, e.g. if blocked nothing will spawn (affects some browsers only).
  • Calling any functions from a thread not spawned by web-thread will cause issues.

Browser bugs:

Modules§

  • webWeb
    Platform-specific extensions for web-thread on the Web platform.

Structs§

Functions§

Type Aliases§