未验证 提交 51fdbe43 编写于 作者: S Shuaiqiang Chang 提交者: GitHub

Update 07-tmq.mdx

上级 a89f945e
...@@ -90,6 +90,7 @@ void close() throws SQLException; ...@@ -90,6 +90,7 @@ void close() throws SQLException;
</TabItem> </TabItem>
<TabItem value="Python" label="Python"> <TabItem value="Python" label="Python">
```python ```python
class TaosConsumer(): class TaosConsumer():
def __init__(self, *topics, **configs) def __init__(self, *topics, **configs)
...@@ -107,9 +108,10 @@ class TaosConsumer(): ...@@ -107,9 +108,10 @@ class TaosConsumer():
def close(self) def close(self)
def __del__(self) def __del__(self)
``` ```
</TabItem> </TabItem>
<TabItem label="Go" value="Go"> <TabItem label="Go" value="Go">
```go ```go
...@@ -152,7 +154,6 @@ void Unsubscribe() ...@@ -152,7 +154,6 @@ void Unsubscribe()
void Commit(ConsumeResult consumerResult) void Commit(ConsumeResult consumerResult)
void Close() void Close()
``` ```
</TabItem> </TabItem>
...@@ -590,6 +591,7 @@ consumer.Unsubscribe(); ...@@ -590,6 +591,7 @@ consumer.Unsubscribe();
// 关闭消费 // 关闭消费
consumer.Close(); consumer.Close();
```
</TabItem> </TabItem>
</Tabs> </Tabs>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册