Skip to content

Instantly share code, notes, and snippets.

@eugene-bright
eugene-bright / connection.py
Created Oct 17, 2018
Wait for tcp service
View connection.py
import socket
from typing import Callable
from linuxfd import timerfd
from itertools import (
starmap,
repeat,
)
def wait_for_tcp_service(
addr: str,