Moonshark/core/runner/job.go
2025-03-15 22:38:03 -05:00

15 lines
401 B
Go

package runner
// JobResult represents the result of a Lua script execution
type JobResult struct {
Value any // Return value from Lua
Error error // Error if any
}
// job represents a Lua script execution request
type job struct {
Bytecode []byte // Compiled LuaJIT bytecode
Context *Context // Execution context
Result chan<- JobResult // Channel to send result back
}