Skip to content

Make sure the ScopedValue is binded to the task #3

@ia3andy

Description

@ia3andy
try {
    final String url = queue.take();
    ScopedValue.runWhere(Scrape.URL, url, scrape);
} catch (InterruptedException e) {
    Thread.currentThread().interrupt();
    throw new RuntimeException(e);
}

In that case this is using a ScopedValue<String> which can be used in the whole Scrape without recalling the supplier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions