# std: Introduce the Once synchronization primitive · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6c907a350989aa881cc0b0f71ec81d1ae1b449b7)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6c907a350989aa881cc0b0f71ec81d1ae1b449b7

Requested commit: 6c907a350989aa881cc0b0f71ec81d1ae1b449b7

Commit: 6c907a350989aa881cc0b0f71ec81d1ae1b449b7

Tree: 256a6c8a1e2ece8823cd2a05252a2ab6a40f11f0

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Introduce the Once synchronization primitive

The Once object allows the user to execute a function just once in a
thread-safe way.

```

## Parents

- [44ff55091f1e851484e04e87d1f36d6662e80af0](https://git.cafe/gitcafe/zig/commit/44ff55091f1e851484e04e87d1f36d6662e80af0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6c907a350989aa881cc0b0f71ec81d1ae1b449b7?format=markdown)
