# Digit collection functions

The ADI service provides the following synchronous and asynchronous digit collection functions:

Function | Synchronous/ Asynchronous | Description
--- | --- | ---
adiGetDigit | Synchronous | Retrieves a single digit from the internal digit collection queue.
adiInsertDigit | Synchronous | Inserts a digit at the end of the ADI service internal digit queue.
adiPeekDigit | Synchronous | Reads the first digit from the internal digit collection queue without removing it.
adiFlushDigitQueue | Synchronous | Flushes the internal digit collection queue.
adiCollectDigits | Asynchronous | Starts asynchronous digit collection.
adiStopCollection | Asynchronous | Terminates digit collection.