MCPcopy Create free account
hub / github.com/NV404/gova / asyncState

Struct asyncState

effect.go:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35type asyncState[T any] struct {
36 mu sync.RWMutex
37 data T
38 err error
39 loading bool
40}
41
42// UseAsync runs an async function and returns (data, error, loading).
43// Re-runs if the component re-mounts. Cancels on unmount via context.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected