wrapFuture<T> method

Future<T> wrapFuture<T>(
  1. String name,
  2. Future<T> future
)

When overridden, this method wraps future with logic.

wrapFuture is called by _call, which is the method that each VM service endpoint eventually goes through.

This method should be overridden if subclasses of VmService need to do anything special upon calling the VM service, like tracking futures or logging requests.

Implementation

Future<T> wrapFuture<T>(String name, Future<T> future) {
  return future;
}