MCPcopy Create free account
hub / github.com/MMadmer/EpicAssetsNotifyBot / sleepContext

Function sleepContext

internal/fab/scraper.go:208–218  ·  view source on GitHub ↗
(ctx context.Context, d time.Duration)

Source from the content-addressed store, hash-verified

206}
207
208func sleepContext(ctx context.Context, d time.Duration) error {
209 timer := time.NewTimer(d)
210 defer timer.Stop()
211
212 select {
213 case <-ctx.Done():
214 return ctx.Err()
215 case <-timer.C:
216 return nil
217 }
218}
219
220// ParseFreeAssets extracts the Limited-Time Free section from a rendered HTML document.
221func ParseFreeAssets(document string) (Result, error) {

Callers 2

FetchMethod · 0.70
GetFreeAssetsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected