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 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> References: <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 Benjamin Risher : > 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: The main object of the example is to see how multiple inputs can be multiplexed using asyncio.wait(FIRST_COMPLETED). Marko