Reference

unstable_shouldYield

Returns true when the current scheduler task should yield to the host.

Signature

function unstable_shouldYield(): boolean