Skip to content

Commit

Permalink
Merge pull request #2 from real-danm/dan/update-readme
Browse files Browse the repository at this point in the history
update the readme to reflect the valid zero value of Fuse
  • Loading branch information
frostbyte73 authored Aug 8, 2024
2 parents b6c202a + 8279906 commit e879871
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Things I wish were built in.

## Fuse

A thread-safe one-way switch, used for permanent state changes.
A thread-safe one-way switch, used for permanent state changes. The zero value is valid simlar to standard synchronization primitives.

```go
type Server struct {
Expand All @@ -13,9 +13,7 @@ type Server struct {
}

func NewServer() *Server {
return &Server{
shutdown: core.NewFuse()
}
return &Server{}
}

func (s *Server) Run() {
Expand Down

0 comments on commit e879871

Please sign in to comment.