Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
m.kindritskiy committed Jul 18, 2023
1 parent f1d8d4e commit a4fd060
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ Server consists of two services:

- grpclib_ + hiku_

Installation
~~~~~~~~~~~~

To install client library for synchronous app:

.. code-block:: shell
$ pip install featureflags-client grpcio
To install client library for asynchronous app:

.. code-block:: shell
$ pip install featureflags-client grpclib
Development
~~~~~~~~~~~

Expand Down
9 changes: 9 additions & 0 deletions client/featureflags/client/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,12 @@ def flags(
finally:
if tracer is not None:
self._manager.add_trace(tracer)

def preload(self, timeout=None):
"""Preload flags from server.
This method syncs all flags with server"""
self._manager.preload(timeout=timeout, defaults=self._defaults)

async def preload_async(self, timeout=None):
"""Async version of `preload` method"""
await self._manager.preload(timeout=timeout, defaults=self._defaults)

0 comments on commit a4fd060

Please sign in to comment.