Make Compile work in parallel

Also make the spinner thread-safe
This commit is contained in:
Ettore Di Giacinto
2019-11-11 10:22:55 +01:00
parent 49a77280ae
commit ebd4cfc318
5 changed files with 104 additions and 16 deletions

View File

@@ -21,6 +21,7 @@ import (
type Compiler interface {
Compile(int, bool, CompilationSpec) (Artifact, error)
CompileParallel(concurrency int, keepPermissions bool, ps []CompilationSpec) ([]Artifact, []error)
FromPackage(pkg.Package) (CompilationSpec, error)
SetBackend(CompilerBackend)