Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 14, 2015
1 parent 90158a3 commit 49eaadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Python supports dynamic instance attributes through the ``property`` decorator.
Cache Asynchronously
--------------------

If you have a function that runs slowly and would like to be able to perform other operations while waiting for the return value, you might try the *asynchronous cache decorator*, :py:meth:`~Cache.cache_asyc`.
If you have a function that runs slowly and would like to be able to perform other operations while waiting for the return value, you might try the *asynchronous cache decorator*, :py:meth:`~Cache.cache_async`.

The :py:meth:`~Cache.cache_async` decorator will run the decorated function in a separate thread. The function therefore will return immediately, even though your code may be processing in the background. Calls to the decorated function will return a method on a synchronized queue object. When the value is calculated (or returned from the cache), it will be placed in the queue and you can retrieve it.

Expand Down

0 comments on commit 49eaadb

Please sign in to comment.