Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81461

Re: Basic asyncio usage

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: Basic asyncio usage
Date 2014-11-24 18:26 +0200
Organization A noiseless patient Spider
Message-ID <87ppcch8eh.fsf@elektro.pacujo.net> (permalink)
References <CAKWvM9keKvSgz88oiCjnRRxmna1U3cco-MzGmKZoD9z2q2NH1A@mail.gmail.com> <mailman.8569.1395833733.18130.python-list@python.org> <977ab162-feba-4320-9c5c-373015c84874@googlegroups.com>

Show all headers | View raw


Benjamin Risher <brisher777@gmail.com>:

> I was wondering if you ever made progress with your asyncio project.
> I'm currently digging around for examples and reference material and
> came across your post.
>
> I'd be interested in any tips/gotchas/examples you'd be willing to
> provide as far as asyncio.

Here's an implementation of the classic Dining Philosophers problem:

   <URL: http://pacujo.net/~marko/philosophers.py>

The main object of the example is to see how multiple inputs can be
multiplexed using asyncio.wait(FIRST_COMPLETED).


Marko

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Basic asyncio usage Benjamin Risher <brisher777@gmail.com> - 2014-11-24 07:18 -0800
  Re: Basic asyncio usage Marko Rauhamaa <marko@pacujo.net> - 2014-11-24 18:26 +0200
    Re: Basic asyncio usage Benjamin Risher <brisher777@gmail.com> - 2014-11-25 06:33 -0800
      Re: Basic asyncio usage Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-11-25 13:57 -0500

csiph-web