# atomicFetchUmin

`import { atomicFetchUmin } from "destack:sync";`

Atomic fetch-and-min (unsigned).

Atomically stores the unsigned minimum of the current value and `value`.
Returns the previous value before the operation.

```ds title="atomicFetchUmin"
export declare function atomicFetchUmin<T: Integer>(ptr: *T, value: T, order: MemoryOrdering, scope: AtomicScope, memoryScope: MemoryScope, regions: MemoryRegionSet, isVolatile: boolean, isMakeAvailable: boolean, isMakeVisible: boolean): T
```

[language/library/src/sync/atomic.ds:407:417](https://github.com/destack-sh/destack/blob/main/language/library/src/sync/atomic.ds#L407-L417)
