MCPcopy Index your code
hub / github.com/coder/coder / doAsync

Function doAsync

cli/open.go:638–647  ·  view source on GitHub ↗
(f func())

Source from the content-addressed store, hash-verified

636}
637
638func doAsync(f func()) (wait func()) {
639 done := make(chan struct{})
640 go func() {
641 defer close(done)
642 f()
643 }()
644 return func() {
645 <-done
646 }
647}
648
649// buildAppLinkURL returns the URL to open the app in the browser.
650// It follows similar logic to the TypeScript implementation in site/src/utils/app.ts

Callers 1

openVSCodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected