description

# runSync<R> method

1. @Since.new("3.13")

R runSync<R>(

1. R f()

)

Execute the given function in the context of the given isolate.

This function will throw if target isolate is running.

Throws an error if target isolate is pinned to another thread and thus can't be entered from this thread. See pinToCurrentThread and isPinnedToCurrentThread.

Throws an error if the target isolate belongs to another isolate group.

Throws an error if `f` is not deeply immutable.

Throws an error if result returned by `f` is not deeply immutable.

## Implementation

    @Since("3.13")
    external R runSync<R>(R Function() f);