@startuml
:model task|
fork
    partition "scan 0" {
        :define scan;
        :scan 0 task|
        detach
        :scan 0 result|
    }
fork again
    partition "scan 1" {
        :define scan;
        :scan 1 task|
        detach
        :scan 1 result|
    }
fork again
    partition "scan N" {
        :define scan;
        :scan N task|
        detach
        :scan N result|
    }
end fork
:model result|
@enduml