Skip to content

unique parallel #38

@CJ-Wright

Description

@CJ-Wright

This could work? We might need to scatter the list to the executor first?

def f(x, l):
    xr = x.result()
    for y in l:
        if xr == y.result():
            return "~~NULL_COMPUTE~~"
    return xr

def update(x, who=None):
    future = self.executor.submit(f, x, self.list)
    self.list.append(x)
    yield self._emit(future)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions