Skip to content

Bug in parallel exitWith branch if a branch return undefined #37

@cl4cnam

Description

@cl4cnam

The bug appears when the branch returning undefined finished first.
For example:

parallel exitWith branch 1 ||
	awaitClickBeep('body')
||
	js ():
		return

gives the error message:

multiple value for cancellor variable --IN--  "... {foreach @all __par
		.var result
		:set result $__par
		{if [.get __par_N = 0]
			[ num   set   $result ]
		else
			:set retValMul $result
			{if [.get __par_N = $num]
				:breakReturn all $retValMul
			}
		}
	}

which is not informative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions