14 lines
348 B
Python
14 lines
348 B
Python
# scopes.core.environ
|
|
|
|
"""Defining an environment for the communication system"""
|
|
|
|
from scopes import core
|
|
from scopes.core import actor
|
|
from scopes.util import keywords as k
|
|
|
|
async def proc_env(scope, msg):
|
|
await scope.environ.put(msg)
|
|
|
|
def create(meta_env):
|
|
return core.create_scope(meta_env, (k.env, k.c00), program=lambda x: proc_env)
|
|
|