16 lines
397 B
Python
16 lines
397 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)
|
|
#return scope
|
|
|
|
def create(meta_env):
|
|
scope = core.create_scope(meta_env, (k.env, k.c00), program=lambda x: proc_env)
|
|
return core.neuron(scope)
|
|
|