package tnet

import "github.com/uber/tchannel-go/tnet"

Index

Functions

func Wrap

func Wrap(l net.Listener) net.Listener

Wrap returns a new Listener around the provided net.Listener. The returned Listener has a guarantee that when Close returns, it will no longer accept any new connections. See: https://github.com/uber/tchannel-go/issues/141

Source Files

listener.go

Version
v1.34.6 (latest)
Published
Jan 8, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
1 week ago

Tools for package owners.