pub fn new_single_threaded_default_platform(
    idle_task_support: bool
) -> UniqueRef<Platform>
Expand description

The same as new_default_platform() but disables the worker thread pool. It must be used with the –single-threaded V8 flag.

If |idle_task_support| is enabled then the platform will accept idle tasks (IdleTasksEnabled will return true) and will rely on the embedder calling v8::platform::RunIdleTasks to process the idle tasks.