Skip to content
Snippets Groups Projects
Commit c1cf1e0b authored by Martin Karlgren's avatar Martin Karlgren
Browse files

Concurrent.results: Handle an empty argument array properly.

Previously code such as:

  Concurrent.Future f2 = Concurrent.results(({}));

  f2->on_success(lambda(array(string) a) { werror("success: %O.\n", a); })
    ->on_failure(lambda(mixed err) { werror (describe_backtrace(err)); });

... would lead to a backtrace because the future was destructed prematurely.
parent f506de44
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment