nitlang / nit

Nit language
http://nitlanguage.org
Apache License 2.0
238 stars 64 forks source link

Contract with `threaded` method #2830

Open Delja opened 4 years ago

Delja commented 4 years ago

This pr makes it possible to prevent that contracts in different threads to interfere with the same flag to know if a contract evaluation should be performed.

Instead of using a flag contained in the Sys instance, we are now using a new AST node which:

Note: When you evaluate a contract, the evaluation is performed in the same thread as the caller. (only the method will be executed in a new thread)

github-actions[bot] commented 2 weeks ago

Test Results

    67 files     338 suites   17m 34s :stopwatch: 14 192 tests 13 648 :white_check_mark: 544 :zzz: 0 :x: 14 588 runs  14 028 :white_check_mark: 560 :zzz: 0 :x:

Results for commit 43759900.