Skip to content

Commit

Permalink
Merge pull request #50 from vkottler/dev/1.0.2-initialized-event
Browse files Browse the repository at this point in the history
1.0.2 - Add connection-initialization event
  • Loading branch information
vkottler authored Apr 7, 2023
2 parents 740edd1 + c06a236 commit 55d2b30
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
=====================================
generator=datazen
version=3.1.0
hash=510e3397b6792736f91654e3847ccf43
hash=67c11985b808ec63e99497bfbb8b0c15
=====================================
-->

# runtimepy ([1.0.1](https://pypi.org/project/runtimepy/))
# runtimepy ([1.0.2](https://pypi.org/project/runtimepy/))

[![python](https://img.shields.io/pypi/pyversions/runtimepy.svg)](https://pypi.org/project/runtimepy/)
![Build Status](https://github.com/vkottler/runtimepy/workflows/Python%20Package/badge.svg)
Expand Down
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 1
minor: 0
patch: 1
patch: 2
entry: runtimepy
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "runtimepy"
version = "1.0.1"
version = "1.0.2"
description = "A framework for implementing Python services."
readme = "README.md"
requires-python = ">=3.7"
Expand Down
4 changes: 2 additions & 2 deletions runtimepy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.0
# hash=a869e3ab405cc0055ec5bb7a73182b8b
# hash=f046ffa060de0f7a1c7e94b145c190e2
# =====================================

"""
Expand All @@ -10,4 +10,4 @@

DESCRIPTION = "A framework for implementing Python services."
PKG_NAME = "runtimepy"
VERSION = "1.0.1"
VERSION = "1.0.2"
2 changes: 2 additions & 0 deletions runtimepy/net/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, logger: _LoggerType) -> None:
self.tx_binary_hwm: int = 0

self._tasks: _List[_asyncio.Task[None]] = []
self.initialized = _asyncio.Event()
self.init()

def init(self) -> None:
Expand Down Expand Up @@ -111,6 +112,7 @@ async def _async_init(self) -> None:

if not await self.async_init():
self.disable("init failed")
self.initialized.set()

async def process(self, stop_sig: _asyncio.Event = None) -> None:
"""
Expand Down

0 comments on commit 55d2b30

Please sign in to comment.