Examples using... context.WithDeadline()

Recent
This example passes a context with an arbitrary deadline to tell a blocking function that it should abandon its work as soon as it gets to it.