queue is called for each request. It returns false if there are no identical requests in progress. Otherwise it blocks until the first request is completed and returns the error that occurred during its resolution.
(ctx context.Context, dctx *DNSContext)
| 19 | // request is completed and returns the error that occurred during its |
| 20 | // resolution. |
| 21 | queue(ctx context.Context, dctx *DNSContext) (loaded bool, err error) |
| 22 | |
| 23 | // done must be called after the request is completed, if queue returned |
| 24 | // false for it. |