addDelegate<Q, R> abstract method

void addDelegate<Q, R>(
  1. WorkerDelegate<Q, R> delegate
)

Adds a new WorkerDelegate with its WorkerDelegate.key.

Each delegate should have its unique key, meaning two or more WorkerDelegate with the same key cannot be added. Otherwise it will throw AssertionError on debug mode.

Implementation

void addDelegate<Q, R>(WorkerDelegate<Q, R> delegate);