# Function createTaskQueue

Workflows exports - Workflow engine with parallel execution Split from index.ts for file size compliance (Issue #285)

- createTaskQueue<T>(concurrency?: number): TaskQueue<T>

  Creates a task queue with the specified concurrency.

  #### Type Parameters

  - T

  #### Parameters

  - concurrency: number = 5

    Maximum number of concurrent tasks

  #### Returns TaskQueue<T>

  A new TaskQueue instance

  - Defined in packages/nexus-agents/src/workflows/task-queue.ts:147