hunk.code_window:  *
    * <span class="informal">Put every next task on a queue, instead of executing it immediately</span>
    *
    * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler.
    *
    * When used without delay, it schedules given task synchronously - executes it right when
    * it is scheduled. However when called recursively, that is when inside the scheduled task,
    * another task is scheduled with queue scheduler, instead of executing immediately as well,
    * that task will be put on a queue and wait for current one to finish.
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:  * `queueScheduler` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler.
  
hunk.file_path: src/internal/scheduler/queue.ts
hunk.type: replace
file: {% extends 'export-base.template.html' %}
  
  {% block overview %}
    <section class="{$ doc.docType $}-overview">
      <code-example language="ts" hideCopy="true">
      type {$ doc.name $}{$ doc.typeParameters | escape $}{% if doc.typeDefinition %} = {$ doc.typeDefinition | escape $}{% endif %};
      </code-example>
    </section>
  {% endblock %}
  
  {% block details %}
    {% include "includes/description.html" %}
  {% endblock %}
  