Skip to content

classes are not imported into the parallel runspaces #2

@powercode

Description

@powercode
class Foo {
    $I
    Foo($i){ $this.I = $i }
}

1..10 | Invoke-Parallel {[Foo]::new($_)}

Error: Invoke-Parallel : Unable to find type [Foo].

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