remove global

This commit is contained in:
2025-12-18 18:43:23 -06:00
parent aa18a8c8d2
commit d50f4119ee
60 changed files with 378 additions and 282 deletions

View File

@@ -62,7 +62,7 @@ An actor is a script that **does not return a value**. It runs as an independent
// worker.ce
log.console("Worker started")
$_.on_message = function(msg) {
$on_message = function(msg) {
log.console("Received:", msg)
// Process message...
}
@@ -86,12 +86,12 @@ Reference to the current actor.
log.console($me) // actor reference
```
### $_.stop()
### $stop()
Stop the current actor.
```javascript
$_.stop()
$stop()
```
### $send(actor, message, callback)
@@ -207,7 +207,7 @@ $start(function(worker) {
$delay(function() {
log.console("Shutting down")
$_.stop()
$stop()
}, 10)
```

View File

@@ -17,7 +17,7 @@ Cell is an actor-based scripting language for building concurrent applications.
```javascript
// hello.ce - A simple actor
log.console("Hello, Cell!")
$_.stop()
$stop()
```
```bash