RemoveChannelSubscribers[channel]
指定されたチャネルの全購読者を削除する.
RemoveChannelSubscribers[channel,user]
指定されたユーザを購読者リストから削除する.
RemoveChannelSubscribers[channel,{user1,user2,…}]
指定された購読者 useriを削除する.
RemoveChannelSubscribers
RemoveChannelSubscribers[channel]
指定されたチャネルの全購読者を削除する.
RemoveChannelSubscribers[channel,user]
指定されたユーザを購読者リストから削除する.
RemoveChannelSubscribers[channel,{user1,user2,…}]
指定された購読者 useriを削除する.
詳細とオプション
- RemoveChannelSubscribers[channel,…]の channel は,チャネルオブジェクトとして,あるいはChannelObjectの中で使われている任意の形式で指定できる.
- RemoveChannelSubscribersは,購読者のセッション中の対応するChannelListenerオブジェクトを停止しようとする.しかし,この操作は保証されず,チャネルの安全性のためにもこれに頼るべきではない.
- 購読者の削除にはそのチャネルの実行許可が必要である.
例題
すべて開く すべて閉じる例 (1)
チャネルを購読し,そのチャネルの購読者リストをチェックする:
channel = CreateChannel["x"]ChannelListen[channel]ChannelSubscribers[channel]RemoveChannelSubscribers[channel, %]ChannelSubscribers[channel]DeleteObject[channel]スコープ (2)
CreateChannel["x"];
ChannelListen["x"]RemoveChannelSubscribers["x", $WolframID]DeleteChannel["x"];CreateChannel["x"];
ChannelListen["x"]RemoveChannelSubscribers["x"]DeleteChannel["x"];アプリケーション (2)
チャネルの作成者による管理 (1)
channel = CreateChannel["public", Permissions -> "Public"]ChannelListen[channel]他のユーザのWolfram言語のセッションで以下のコマンドを実行することで,自分のチャネルをそのユーザに受信させる:
ChannelListen["documentation@wolfram.com:public"]ChannelSubscribers[channel]RemoveChannelSubscribers[channel, Complement[%, {$WolframID}]]ChannelSubscribers[channel]RemoveChannelListener[]DeleteChannel[channel]第三者による管理 (1)
channel = CreateChannel["public", Permissions -> <|"All" -> {"Read", "Write"}, {"Owner", "another@sample.com"} -> "Execute"|>]ChannelListen[channel]第三者のセッションで以下のコマンドを実行することで,第三者がユーザ自身の購読を解除することを許す:
RemoveChannelSubscribers["documentation@wolfram.com:public", "documentation@wolfram.com"]ChannelSubscribers[channel]DeleteChannel[channel]特性と関係 (3)
RemoveChannelListenerは現行セッションにおける購読を直接中止する:
CreateChannel["x"];
ChannelListen["x"]RemoveChannelListener[%]ChannelSubscribers["x"]DeleteChannel["x"];RemoveChannelSubscribersは現行の購読を中止するが,同じユーザが再度購読することを妨げはしない:
CreateChannel["x"];
ChannelListen["x"]RemoveChannelSubscribers["x"]ChannelListen["x"]DeleteChannel["x"];チャネルのパーミッションを設定することで受信特権を無効にすると,このチャネルの将来的な受信はできなくなるが,これは現在アクティブなリスナには影響しない.SetOptionsに加えてRemoveChannelSubscribersを使ってリスナを終了し,今後のアクセスを防ぐ:
channel = CreateChannel["channel", Permissions -> <|"another@sample.com" -> {"Read"}|>]SetOptions[channel, Permissions -> <|"another@sample.com" -> {}|>]RemoveChannelSubscribers[channel]DeleteObject[channel]関連するガイド
テキスト
Wolfram Research (2019), RemoveChannelSubscribers, Wolfram言語関数, https://reference.wolfram.com/language/ref/RemoveChannelSubscribers.html.
CMS
Wolfram Language. 2019. "RemoveChannelSubscribers." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RemoveChannelSubscribers.html.
APA
Wolfram Language. (2019). RemoveChannelSubscribers. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RemoveChannelSubscribers.html
BibTeX
@misc{reference.wolfram_2026_removechannelsubscribers, author="Wolfram Research", title="{RemoveChannelSubscribers}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/RemoveChannelSubscribers.html}", note=[Accessed: 03-December-2026]}
BibLaTeX
@online{reference.wolfram_2026_removechannelsubscribers, organization={Wolfram Research}, title={RemoveChannelSubscribers}, year={2019}, url={https://reference.wolfram.com/language/ref/RemoveChannelSubscribers.html}, note=[Accessed: 03-December-2026]}