execute<R> method

  1. @Deprecated('This method will be removed in 0.19.0. Use [zone] instead.')
R execute<R>(
  1. R fn()
)

Execute a function fn within this Context and return its result.

Implementation

@Deprecated('This method will be removed in 0.19.0. Use [zone] instead.')
R execute<R>(R Function() fn) => zone(this).run(fn);