Skip to content

[unintuitive behaviour] or [bug] Faults thrown in the spawn primitive are discarded #638

@Niels-Erik

Description

@Niels-Erik

Faults thrown in the spawn primitive are discarded
This is annoying, because if a fault happens the programmer is unable to know that it happened.

Expected behaviour
Running the code below I would expect:

  • The first fault thrown to be logged and execution is stopped (like what happens with the parallel operator),
  • Or all faults thrown to be logged and execution is stopped.
service test {
	main {
		spawn( i over 3 ) in resultVar {
    		throw( error, i )
		}
	}
}

Desktop:
OS: windows
Jolie version: 1.13-git

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions