unawaited function

void unawaited(
  1. Future<void>? future

Exported from package:pedantic Indicates to tools that Future is intentionally not await-ed.

In an async context, it is normally expected that all Futures are awaited, and that is the basis of the lint unawaited_futures. However, there are times where one or more futures are intentionally not awaited. This function may be used to ignore a particular future. It silences the unawaited_futures lint.


void unawaited(Future<void>? future) {}