go-python / go-python/gopy

Document concurrency

オープン
#223 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
2.3k
フォーク
136
平均マージ
14分
マージ済み PR(30日)
2

説明

I'm curious what model is used to bridge Python and golang concurrency models.
I wish it was documented :)

Python has threads (1:1 mapped to lightweight system processes) and asyncio, explicit and quite so different.

Go has special handling for cpu-bound and io-bound goroutines, transparent to the user.

How would someone use `gopy` to interface go's amazing `net/http` module or some go package that wraps it? As in, how should Python code look like to benefit from go's concurrency?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。