effect

package
v0.1.112 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchedEffect

func LaunchedEffect(block func(context.Context), keys ...any) api.Composable

LaunchedEffect runs a side-effect in a goroutine. The effect is restarted if any of the keys change.

func RememberCoroutineScope added in v0.1.94

func RememberCoroutineScope(c api.Composer) lifecycle.CoroutineScope

Types

type CoroutineScope added in v0.1.94

type CoroutineScope struct {
	// contains filtered or unexported fields
}

func (*CoroutineScope) Context added in v0.1.94

func (c *CoroutineScope) Context() (context.Context, bool)

func (*CoroutineScope) Launch added in v0.1.94

func (c *CoroutineScope) Launch(block func(ctx context.Context))

func (*CoroutineScope) MustContext added in v0.1.98

func (c *CoroutineScope) MustContext() context.Context

func (*CoroutineScope) SetCoroutineScope added in v0.1.98

func (c *CoroutineScope) SetCoroutineScope(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL