Phase 8.3: Fix spawn to use bux_task_spawn for non-async functions
- Added exprSpawnAsync flag to AST ekSpawn - Sema checks if callee is async and sets the flag - HIR hSpawn carries spawnAsync flag - C backend uses bux_task_spawn for non-async (OS threads) and bux_async_spawn for async (coroutines) - Added concurrency example to test suite
This commit is contained in:
@@ -3,7 +3,7 @@ SRC := src/main.nim
|
||||
OUT := buxc
|
||||
BUILD_DIR := build
|
||||
|
||||
EXAMPLES := hello fibonacci factorial structs enums methods algebraic_enums generics generics_struct generic_infer generic_infer2 extend_generic pattern_matching strings strings2 map result_option try_operator ownership ctfe async
|
||||
EXAMPLES := hello fibonacci factorial structs enums methods algebraic_enums generics generics_struct generic_infer generic_infer2 extend_generic pattern_matching strings strings2 map result_option try_operator ownership ctfe async concurrency
|
||||
|
||||
.PHONY: all build dev test clean test-examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user