fix: fix getStartPoint() requirements for not-yet-written#49
Open
fix: fix getStartPoint() requirements for not-yet-written#49
Conversation
xnv
commented
Feb 20, 2023
| ``` | ||
|
|
||
| 開始地点情報が見つからない場合、 `StartPoint` は `null` となります。 | ||
| 条件に当てはまる開始地点情報が一つもない場合、当てはまる開始地点情報が保存されるまでコールバック関数は呼び出されません。 |
Member
Author
There was a problem hiding this comment.
動作からするとこの関数は get〜 というよりも wait〜 とか呼ばれるべきに思えます (他の get〜 系メソッドと動作が違うので) が、後方互換性を考えるとなかなか変えにくいところかと思います。
(現状特に必要ありませんが、今後もし "get" の方の動作 (=値がまだない状況なら待たずに null なりエラーなり返す) が欲しくなった場合には、 opts.immediate?: boolean フラグのようなものを加えて、フラグ次第で動作を変化させる……というような機能拡張をすることになりそうだな、ということを考えています)
xnv
commented
Feb 20, 2023
| オプションとしてフレーム番号を指定した場合は、そのフレーム番号以前の直近のフレームに該当する開始地点情報を取得します。 | ||
|
|
||
| オプションとしてフレーム番号を指定した場合は、フレーム番号以前の直近のフレームに該当する開始地点情報を取得します。 | ||
| オプションとしてタイムスタンプを指定した場合は、その値より小さい中で直近のタイムスタンプを持つ開始地点情報を取得します。 |
Member
Author
There was a problem hiding this comment.
不明点: タイムスタンプも未満でなく以下が返っている? (実装上は恐らくどちらでも実害はない)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
実態 (事実上必要な要件) に合わせて仕様説明を更新します。
getStartPoint()のフレーム指定は、当該フレーム「未満」ではなく「以下」を表すものとして訂正getStartPoint()のタイムスタンプ指定に関する要求追加getStartPoint()の、返すべき値がまだない時、失敗するのではなく書き込みを待つように要求追加