> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IGameInputDispatcher::Dispatch

> IGameInputDispatcher::Dispatch

# IGameInputDispatcher::Dispatch

Executes work in the dispatcher's queue.

## Syntax

```cpp theme={null}
bool Dispatch(
    uint64_t quotaInMicroseconds
);
```

### Parameters

*quotaInMicroseconds*   \_In\_\
Type: uint64\_t

The amount of time that the dispatcher has to execute tasks. The dispatcher will attempt to keep processing time within the provided duration, but this is not a guaranteed limit.

### Return value

Type: bool

Returns true if  work items are pending in the dispatcher's queue. Returns false if no work items remain. Returns at the time that the queue is flushed.

## Remarks

The `IGameInputDispatcher::Dispatch` executes work in the dispatcher's queue. This method flushes at least one item from the queue even if the `quotaInMicroseconds` parameter is set to zero. You can call with a quota time of zero to execute a single item and then decide whether to dispatch more items depending on the time elapsed. For intermediate and advanced use-cases of the GameInput API, see [Advanced GameInput topics](/build/core-features/common/input/advanced/input-advanced-topics).

## Requirements

**Header:** GameInput.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[Overview of GameInput](/build/core-features/common/input/overviews/input-overview)\
[IGameInputDispatcher](/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher)

## Version History

| Version | Changes     |
| ------- | ----------- |
| **v0**  | Introduced. |


## Related topics

- [IGameInput::CreateDispatcher](/reference/input/gameinput/interfaces/igameinput/methods/igameinput_createdispatcher.md)
- [IGameInputDispatcher](/reference/input/gameinput/interfaces/IGameInputDispatcher/igameinputdispatcher.md)
- [IGameInputDispatcher::OpenWaitHandle](/reference/input/gameinput/interfaces/IGameInputDispatcher/methods/igameinputdispatcher_openwaithandle.md)
- [GameInput work queues](/build/core-features/common/input/advanced/input-work-queues.md)
- [GameInput](/reference/input/gameinput/gameinput_members.md)
