The engine core had some unfortunate bugs that were the result of some early design errors when I wasn't as familiar with channels. I've finally rewritten most of the bad parts, and I think it's much more logical and stable now. This also simplifies the resource API, since more of the work is done completely in the engine, and hidden from view. Lastly, this adds a few new metaparameters and associated code. There are still some open problems left to solve, but hopefully this brings us one step closer.
28 lines
496 B
Plaintext
28 lines
496 B
Plaintext
import "fmt"
|
|
|
|
$b = true
|
|
|
|
test "greeting" {
|
|
anotherstr => fmt.printf("hello world"),
|
|
|
|
Meta => $b ?: struct{
|
|
noop => false,
|
|
retry => -1,
|
|
delay => 0,
|
|
poll => 5,
|
|
limit => 4.2,
|
|
burst => 3,
|
|
sema => ["foo:1", "bar:3",],
|
|
rewatch => false,
|
|
realize => true,
|
|
reverse => true,
|
|
autoedge => true,
|
|
autogroup => true,
|
|
},
|
|
Meta:noop => false,
|
|
Meta:noop => true, # duplicates allowed atm, but not recommended!
|
|
Meta:poll => $b ?: 42,
|
|
Meta:autoedge => true,
|
|
Meta:autogroup => false,
|
|
}
|