execute<R> abstract method

  1. @Deprecated('This method will be removed in 0.19.0. Propagate [Context] as an ' 'argument to [fn] and call [fn] directly or use ' '[(context as ZoneContext).run((_) => fn(this))] 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. Propagate [Context] as an '
    'argument to [fn] and call [fn] directly or use '
    '[(context as ZoneContext).run((_) => fn(this))] instead.')
R execute<R>(R Function() fn);