Skip to content

[pull] main from livekit:main - #475

Merged
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main
Sep 8, 2026
Merged

[pull] main from livekit:main#475
pull[bot] merged 1 commit into
erickirt:mainfrom
livekit:main

Conversation

@pull

@pull pull Bot commented Sep 8, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Importing utils for a promise costs 497 packages: codec.go reaches pion/webrtc
and 74 packages behind it, and the rest of utils pulls in psrpc and nats. A
consumer whose only use is *utils.Promise on one interface method inherits all
of it, and where that consumer is translated for deterministic simulation, so
is every package in the closure.

utils/promise and utils/deepcopy carry nothing beyond the standard library:
context and sync, and reflect. Their constructors drop the stutter, and
NewResolved is spelled apart from the Resolved method, which reports whether a
promise has settled rather than producing one that has.

The old spellings stay. Promise is a type alias rather than a defined type, so
a promise built under either name satisfies an interface written against the
other — the case that matters when one package declares the seam and another
implements it. A compile-time assertion pins that, since a defined type would
still build here and break only the callers that mix the two.
@pull pull Bot locked and limited conversation to collaborators Sep 8, 2026
@pull pull Bot added the ⤵️ pull label Sep 8, 2026
@pull
pull Bot merged commit 6cde54c into erickirt:main Sep 8, 2026
1 check was pending
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant