runWithComponent<T> method

T runWithComponent<T>(
  1. TerminiceComponentCallback<T> run
)

Runs a custom component callback with a stable TerminiceComponentContext.

Implementation

T runWithComponent<T>(TerminiceComponentCallback<T> run) {
  return runComponent<T>(TerminiceComponent<T>.from(run));
}