Instance Method インスタンスメソッド

readToEndOfFileInBackgroundAndNotify(forModes:)

Reads to the end of file from the file or communications channel in the background and posts a notification when finished. バックグラウンドにおいてファイルまたは通信経路からファイルの終端まで読み込みます、そして終了した時にある通知を投函します。

Declaration 宣言

func readToEndOfFileInBackgroundAndNotify(forModes modes: [RunLoop.Mode]?)

Parameters パラメータ

modes

The runloop modes in which the read completion notification can be posted. 読み込み完了通知が投函されることが可能な実行ループのモード。

Discussion 議論

See readToEndOfFileInBackgroundAndNotify() for details of this method's operation. The method differs from readToEndOfFileInBackgroundAndNotify() in that modes specifies the run-loop mode (or modes) in which NSFileHandleReadToEndOfFileCompletion can be posted. readToEndOfFileInBackgroundAndNotify()をこのメソッドの持つ演算の詳細として見てください。メソッドは、readToEndOfFileInBackgroundAndNotify()とは、modesがそこにおいてNSFileHandleReadToEndOfFileCompletionが投函されることが可能な実行ループモード(または複数のモード)を指定することにおいて異なります。

You must call this method from a thread that has an active run loop. あなたは、このメソッドをアクティブ実行ループを持つスレッドから呼び出さなければなりません。

See Also 参照

Reading Asynchronously with Notifications 通知で非同期に読み出す

Related Documentation 関連文書