---
title: "notify(_:atValue:block:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtlsharedevent/notify(_:atvalue:block:)"
---

# notify(_:atValue:block:)

Schedules a notification handler to be called after the shareable event’s signal value equals or exceeds a given value.

## Declaration

```swift
func notify(_ listener: MTLSharedEventListener, atValue value: UInt64, block: @escaping MTLSharedEventNotificationBlock)
```

## Parameters

- `listener`: The listener object used to dispatch the notification.
- `value`: The minimum value that needs to be signaled before the notification handler is called.
- `block`: The notification handler to call.

## Mentioned in

Synchronizing events between a GPU and the CPU

## See Also

### Synchronizing a shareable event

- [signaledValue](metal/mtlsharedevent/signaledvalue.md)
