Interface AsyncGroup.Task

Enclosing class:
AsyncGroup
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface AsyncGroup.Task
Functional interface representing an asynchronous unit of work registered with an AsyncGroup.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Executes the asynchronous task.
  • Method Details

    • execute

      void execute() throws com.github.sttk.errs.Err
      Executes the asynchronous task.
      Throws:
      com.github.sttk.errs.Err - if an error occurs during task execution