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


Groups > comp.lang.python > #81461

Re: Basic asyncio usage

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: Basic asyncio usage
Date Mon, 24 Nov 2014 18:26:30 +0200
Organization A noiseless patient Spider
Lines 18
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>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="25681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iiyLcJfDQEjqxN/sUATRe"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:R9TMIbaVOMgTRuzQBXnxV925bOg= sha1:5GYC5WYwn1Qyilkrs/w+CTsr2lw=
Xref csiph.com comp.lang.python:81461

Show key headers only | 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