# `GSPathObservation performBlockWithPausedObservation:`

*Instance Method*

Pauses the observation, performs the block, and resumes the observation before returning.

## Declaration

```swift
func performBlock(pausedObservation body: @escaping () -> Void)
```

```objc
- (void) performBlockWithPausedObservation:(void (^)()) body;
```

```python
performBlockWithPausedObservation_(body)
```

## Discussion

Exceptions thrown in the block are caught and rethrown after resuming the observation.

